Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { ID string // contains filtered or unexported fields }
func (*Client) SendMessage ¶
type Server ¶
type Server struct { OnConnected func(*Client) OnMessage func(*Client, string) OnError func(*Client, error) OnDisconnected func(*Client) // contains filtered or unexported fields }
func NewServer ¶
func NewServer(address, endpoint string, config ServerConfig) *Server
type ServerConfig ¶
type ServerConfig struct {
Origin string // * - all (no check)
}
Click to show internal directories.
Click to hide internal directories.