Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WsServer ¶
type WsServer struct { lokas.Server Context *lokas.Context // contains filtered or unexported fields }
func NewWsServer ¶
func NewWsServer(context *lokas.Context) *WsServer
NewWsServer create a new websocket server
func (*WsServer) GetActiveConnNum ¶
GetActiveConnNum get count of active connections
func (*WsServer) ServeHTTP ¶
func (this *WsServer) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP serve http request
Click to show internal directories.
Click to hide internal directories.