Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type WebSocketServer ¶
type WebSocketServer struct {
// contains filtered or unexported fields
}
func NewWebSocketServer ¶
func NewWebSocketServer(handlers *gotalk.Handlers) *WebSocketServer
func NewWebSocketServerWithOptions ¶
func NewWebSocketServerWithOptions(handlers *gotalk.Handlers, opts *WebSocketServerOptions) *WebSocketServer
func (*WebSocketServer) ServeHTTP ¶
func (server *WebSocketServer) ServeHTTP(w http.ResponseWriter, r *http.Request) error
type WebSocketServerOptions ¶
type WebSocketServerOptions struct { Limits gotalk.Limits OnAccept gotalk.SockHandler HeartbeatInterval time.Duration OnHeartbeat func(load int, t time.Time) Upgrader websocket.Upgrader }
func DefaultWebSocketServerOptions ¶
func DefaultWebSocketServerOptions() WebSocketServerOptions
type XNetWebSocketServer ¶
type XNetWebSocketServer struct { Server *websocket.Server // contains filtered or unexported fields }
func NewXNetWebSocketServer ¶
func NewXNetWebSocketServer(handlers *gotalk.Handlers, limits gotalk.Limits, onAccept gotalk.SockHandler) *XNetWebSocketServer
func (*XNetWebSocketServer) ServeHTTP ¶
func (s *XNetWebSocketServer) ServeHTTP(w http.ResponseWriter, r *http.Request) error
Click to show internal directories.
Click to hide internal directories.