Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPacket ¶
func NewPacket(rw io.ReadWriter) *packet
Types ¶
type ClientConnOptions ¶
type ClientConnOptions struct {
WriteChannelSize int
}
type ConnectionContext ¶
func (*ConnectionContext) Close ¶
func (ctx *ConnectionContext) Close() error
type Server ¶
type Server struct { *TCPServer *WebsocketServer }
type TCPServer ¶
type TCPServer struct { OnAuthorization func() OnClose func() // contains filtered or unexported fields }
func NewTCPServer ¶
type WebsocketServer ¶
type WebsocketServer struct {
// contains filtered or unexported fields
}
func NewWebsocketServer ¶
func NewWebsocketServer(timeout time.Duration) *WebsocketServer
func (*WebsocketServer) ServeHTTP ¶
func (s *WebsocketServer) ServeHTTP(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.