Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChannelContext ¶
type Context ¶ added in v0.0.16
type Context interface { router.Context Closed() bool EnableReadCheck() Receive(out interface{}) error Send(data interface{}) error }
Context defines a context for websocket functionality.
type Message ¶
type Message struct { Channel *string `json:"channel"` Error string `json:"error,omitempty"` Payload json.RawMessage `json:"payload"` }
type WebSocket ¶
type WebSocket struct {
// contains filtered or unexported fields
}
func (*WebSocket) WithAsyncChannel ¶
func (*WebSocket) WithCatchAll ¶
func (*WebSocket) WithChannel ¶
Click to show internal directories.
Click to hide internal directories.