Documentation ¶
Index ¶
- func InitClient()
- func SetConnectionHandler(handler ConnectionHandler)
- func SetDisconnectionHandler(handler DisconnectionHandler)
- func SetNotificationHandler(handler NotificationHandler)
- type ConnectedMessage
- type ConnectionHandler
- type DisconnectionHandler
- type MessageHandler
- type NotificationHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitClient ¶
func InitClient()
func SetConnectionHandler ¶
func SetConnectionHandler(handler ConnectionHandler)
func SetDisconnectionHandler ¶
func SetDisconnectionHandler(handler DisconnectionHandler)
func SetNotificationHandler ¶
func SetNotificationHandler(handler NotificationHandler)
Types ¶
type ConnectedMessage ¶
type ConnectedMessage struct {
// contains filtered or unexported fields
}
type ConnectionHandler ¶
type ConnectionHandler func()
type DisconnectionHandler ¶
type DisconnectionHandler func()
type MessageHandler ¶
type MessageHandler func(payload []byte)
type NotificationHandler ¶
type NotificationHandler func(payload []byte)
Click to show internal directories.
Click to hide internal directories.