Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { Start() error Close() Subscribe(path string) error Unsubscribe(path string) error Send(path string, body string, header string) error SendBytes(path string, body []byte, header string) error WriteRawMessage(message []byte) error Messages() chan *protocol.Message StatusMessages() chan *protocol.NotificationMessage Errors() chan *protocol.NotificationMessage SetWSConnectionFactory(WSConnectionFactory) IsConnected() bool }
type WSConnection ¶
type WSConnection interface { WriteMessage(messageType int, data []byte) error ReadMessage() (messageType int, p []byte, err error) Close() error }
func DefaultConnectionFactory ¶
func DefaultConnectionFactory(url string, origin string) (WSConnection, error)
type WSConnectionFactory ¶
type WSConnectionFactory func(url string, origin string) (WSConnection, error)
Click to show internal directories.
Click to hide internal directories.