Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct {
Type MessageType `json:"type"`
Data string `json:"data"`
}
type WSConnection ¶
type WSConnection struct {
Messages chan Message
// contains filtered or unexported fields
}
func NewWS ¶
func NewWS(url string) (*WSConnection, error)
func (*WSConnection) Close ¶
func (wsInsp *WSConnection) Close()
func (*WSConnection) Send ¶
func (wsInsp *WSConnection) Send(msg string) error
Click to show internal directories.
Click to hide internal directories.