Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
func NewConnection ¶
func NewConnection(serverURL string, token string) (*Connection, error)
Websocket connection routine. setup the ping-pong and connection settings
func (*Connection) Close ¶
func (c *Connection) Close() error
func (*Connection) GetWriteTimeout ¶
func (c *Connection) GetWriteTimeout() time.Duration
func (*Connection) ReadMessage ¶
func (c *Connection) ReadMessage() (*ws.ProtoMsg, error)
func (*Connection) WriteMessage ¶
func (c *Connection) WriteMessage(m *ws.ProtoMsg) (err error)
Click to show internal directories.
Click to hide internal directories.