Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶ added in v1.2.2
type Connection struct { Name string Conn websocketIO }
func NewConnection ¶
func NewConnection(d Dialer, secure bool, name, host, path, token string, query string) (*Connection, error)
creates new Connection
func (*Connection) Read ¶ added in v1.2.2
func (c *Connection) Read(ctx context.Context, msgCh chan []byte)
read loop for wesocket
func (*Connection) Write ¶ added in v1.2.2
func (c *Connection) Write(b []byte) error
write to websocket
Click to show internal directories.
Click to hide internal directories.