Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) Write ¶
func (c *Client) Write(msg resource.EventMessage)
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Chat server.
type WebSocketConnectionHandler ¶
type WebSocketConnectionHandler interface {
MessageFromClient(message WebSocketPayload, client *Client)
}
type WebSocketConnectionHandlerImpl ¶ added in v0.9.9
type WebSocketConnectionHandlerImpl struct { DtopicMap *map[string]*olric.DTopic // contains filtered or unexported fields }
WebSocketConnectionHandlerImpl : Each websocket connection has its own handler
func (*WebSocketConnectionHandlerImpl) MessageFromClient ¶ added in v0.9.9
func (wsch *WebSocketConnectionHandlerImpl) MessageFromClient(message WebSocketPayload, client *Client)
type WebSocketPayload ¶
Click to show internal directories.
Click to hide internal directories.