Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conn ¶
type Conn struct { OnMessage func([]byte, *Conn) OnError func(error) OnConnected func(*Conn) MatchMsg func([]byte, []byte) bool Reconnect bool PingMsg []byte PingIntervalSecs int // contains filtered or unexported fields }
Conn is the connection structure.
func (*Conn) Dial ¶
Dial sets up the connection with the remote host provided in the url parameter. Note that all the parameters of the structure must have been set before calling it.
func (*Conn) IsConnected ¶
IsConnected tells wether the connection is opened or closed.
Click to show internal directories.
Click to hide internal directories.