Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a middleman between the websocket connection and the hub.
type WebSocketHub ¶
type WebSocketHub struct {
// contains filtered or unexported fields
}
func NewWebSocketHub ¶
func NewWebSocketHub() *WebSocketHub
type WsMessenger ¶
type WsMessenger struct {
// contains filtered or unexported fields
}
func (*WsMessenger) JavascriptFiles ¶
func (m *WsMessenger) JavascriptFiles() map[string]html.Attributes
func (*WsMessenger) JavascriptInit ¶
func (m *WsMessenger) JavascriptInit() string
func (*WsMessenger) Send ¶
func (m *WsMessenger) Send(channel string, message string)
Click to show internal directories.
Click to hide internal directories.