Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (*Client) MessageListener ¶
func (c *Client) MessageListener()
func (*Client) WriteMessage ¶
func (c *Client) WriteMessage()
type Hub ¶
type Message ¶
type Message struct { ID string `json:"id"` RoomID string `json:"roomId"` UserID string `json:"userId"` Content MessageData `json:"content"` }
func NewMessage ¶
func NewMessage(roomId, userId string, content MessageData) Message
type MessageData ¶
func NewMessageData ¶
func NewMessageData(message string) MessageData
Click to show internal directories.
Click to hide internal directories.