Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Create Connection EventCreateConnection = iota // HeartBeat EventHeartBeat // Message EventMessage // Close Socket EventSocketClose // Subscribe EventSubscribe // Reconnect EventReconnect )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Base ¶
type Base struct { Host string Ws *Conn EventStream chan *Event MessageHandler func(msg []byte) OnWSCreated func() // contains filtered or unexported fields }
func (*Base) CreateWsConn ¶
type Conn ¶
func (*Conn) StartToHeartbeat ¶
func (*Conn) StartToReceiveMessage ¶
func (ws *Conn) StartToReceiveMessage()
Click to show internal directories.
Click to hide internal directories.