Documentation ¶
Index ¶
- type Session
- type WebSocketSession
- type WebsocketServer
- type WebsocketServerAsync
- func (this *WebsocketServerAsync) Handler(req Request, res Response) (bool, Request, Response)
- func (this *WebsocketServerAsync) OnConnect(f func(Session)) *WebsocketServerAsync
- func (this *WebsocketServerAsync) OnDisconnect(f func(Session)) *WebsocketServerAsync
- func (this *WebsocketServerAsync) OnError(f func(Session, error)) *WebsocketServerAsync
- func (this *WebsocketServerAsync) OnMessage(f func(Session, []byte, error)) *WebsocketServerAsync
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WebSocketSession ¶
type WebSocketSession struct {
*Conn
}
func (*WebSocketSession) R ¶
func (this *WebSocketSession) R() *Conn
type WebsocketServer ¶
type WebsocketServer struct {
// contains filtered or unexported fields
}
func AWebsocketServer ¶
func AWebsocketServer(SessionHandler func(*WebSocketSession)) *WebsocketServer
func (*WebsocketServer) Handler ¶
func (this *WebsocketServer) Handler(req Request, res Response) (bool, Request, Response)
type WebsocketServerAsync ¶
type WebsocketServerAsync struct {
// contains filtered or unexported fields
}
func AWebsocketServerAsync ¶
func AWebsocketServerAsync(paraList ...int) *WebsocketServerAsync
func (*WebsocketServerAsync) Handler ¶
func (this *WebsocketServerAsync) Handler(req Request, res Response) (bool, Request, Response)
func (*WebsocketServerAsync) OnConnect ¶
func (this *WebsocketServerAsync) OnConnect(f func(Session)) *WebsocketServerAsync
func (*WebsocketServerAsync) OnDisconnect ¶
func (this *WebsocketServerAsync) OnDisconnect(f func(Session)) *WebsocketServerAsync
func (*WebsocketServerAsync) OnError ¶
func (this *WebsocketServerAsync) OnError(f func(Session, error)) *WebsocketServerAsync
func (*WebsocketServerAsync) OnMessage ¶
func (this *WebsocketServerAsync) OnMessage(f func(Session, []byte, error)) *WebsocketServerAsync
Click to show internal directories.
Click to hide internal directories.