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
}
Client represents a connection.
type Hub ¶
type Hub struct {
// contains filtered or unexported fields
}
Hub manages clients and rooms.
func (*Hub) HandleJoinRoom ¶
Handle join room.
type WebSocketServer ¶
type WebSocketServer struct{}
WebSocketServer manages the WebSocket server.
func NewWebSocketServer ¶
func NewWebSocketServer() *WebSocketServer
NewWebSocketServer creates a new server.
func (*WebSocketServer) NewWsServer ¶
func (wss *WebSocketServer) NewWsServer(addr string)
NewWsServer starts the WebSocket server.
Click to show internal directories.
Click to hide internal directories.