Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChatClient ¶
type ChatClient struct{}
type ChatHub ¶
type ChatHub struct { Clients map[*websocket.Conn]ChatClient Register chan *websocket.Conn Unregister chan *websocket.Conn Broadcast chan ChatMessage }
func NewChatHub ¶
func NewChatHub() *ChatHub
type ChatMessage ¶
type ChatMessage struct { Connection *websocket.Conn Body string }
Click to show internal directories.
Click to hide internal directories.