Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TrafficHandler ¶
type TrafficHandler struct {
// contains filtered or unexported fields
}
TrafficHandler processes WebSocket traffic.
func NewTrafficHandler ¶
func NewTrafficHandler(logger logger.Logger) *TrafficHandler
NewTrafficHandler creates a new instance of TrafficHandler.
func (*TrafficHandler) Handle ¶
func (h *TrafficHandler) Handle(ctx *tcp.ConnectionContext, conn gnet.Conn) gnet.Action
type WsCodec ¶
type WsCodec struct {
// contains filtered or unexported fields
}
WsCodec handles WebSocket upgrades and frame decoding.
func NewWsCodec ¶
Click to show internal directories.
Click to hide internal directories.