Documentation ¶
Index ¶
- type Socket
- func (s *Socket) DeregisterCallback(evType string)
- func (s *Socket) RegisterCallback(evType string, function func(data interface{}))
- func (s *Socket) RegisterOnReconnectCallback(function func())
- func (s *Socket) Request(msgType string, data interface{}) (interface{}, error)
- func (s *Socket) Send(Type string, data interface{}) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Socket ¶
type Socket struct {
// contains filtered or unexported fields
}
func (*Socket) DeregisterCallback ¶
func (*Socket) RegisterCallback ¶
RegisterCallback registers a callback
func (*Socket) RegisterOnReconnectCallback ¶
func (s *Socket) RegisterOnReconnectCallback(function func())
RegisterOnReconnectCallback registers a callback
Click to show internal directories.
Click to hide internal directories.