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
}
Chat client.
func (*Client) Write ¶
func (c *Client) Write(msg *WebSocketPayload)
type Message ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Chat server.
func NewServer ¶
func NewServer(pattern string, messageHandler WebSocketConnectionHandler) *Server
Create new chat server.
type WebSocketConnectionHandler ¶
type WebSocketConnectionHandler interface {
MessageFromClient(message WebSocketPayload, request *http.Request)
}
type WebSocketPayload ¶
Click to show internal directories.
Click to hide internal directories.