Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WebSocketServer ¶
type WebSocketServer struct {
// contains filtered or unexported fields
}
func NewWebSocketServer ¶
func NewWebSocketServer(handler func(ws *transport.WebSocketTransport, request *http.Request)) *WebSocketServer
func (*WebSocketServer) Bind ¶
func (server *WebSocketServer) Bind(cfg WebSocketServerConfig)
type WebSocketServerConfig ¶
type WebSocketServerConfig struct {
Host string
Port int
CertFile string
KeyFile string
HTMLRoot string
WebSocketPath string
}
func DefaultConfig ¶
func DefaultConfig() WebSocketServerConfig
Click to show internal directories.
Click to hide internal directories.