Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConnectionOptions ¶
type NoOpLogger ¶
type NoOpLogger struct { }
func (NoOpLogger) Debugf ¶
func (n NoOpLogger) Debugf(_ string, _ ...interface{})
func (NoOpLogger) Errorf ¶
func (n NoOpLogger) Errorf(_ string, _ ...interface{})
func (NoOpLogger) Infof ¶
func (n NoOpLogger) Infof(_ string, _ ...interface{})
func (NoOpLogger) Tracef ¶
func (n NoOpLogger) Tracef(_ string, _ ...interface{})
func (NoOpLogger) Warnf ¶
func (n NoOpLogger) Warnf(_ string, _ ...interface{})
type ReconnectionOptions ¶
type Socket ¶
type Socket struct { Conn *websocket.Conn WebsocketDialer *websocket.Dialer Url string Connection ConnectionOptions Reconnection ReconnectionOptions RequestHeader http.Header OnConnected func(socket Socket) OnTextMessage func(message string, socket Socket) OnBinaryMessage func(data []byte, socket Socket) Log Logger Timeout time.Duration OnConnectError func(err error, socket Socket) OnDisconnected func(err error, socket Socket) OnPingReceived func(data string, socket Socket) OnPongReceived func(data string, socket Socket) // contains filtered or unexported fields }
func (*Socket) IsConnected ¶
func (*Socket) SendBinary ¶
Click to show internal directories.
Click to hide internal directories.