Documentation ¶
Index ¶
Constants ¶
View Source
const ChanBufferSize = 64
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GorewsClient ¶
type GorewsClient struct { Incoming chan []byte Outgoing chan []byte OnConnectedCallback OnConnectedCallback Url *url.URL ReqHeader http.Header Dialer *websocket.Dialer // contains filtered or unexported fields }
func NewGorewsClient ¶
func NewGorewsClient(onConnectedCallback OnConnectedCallback) *GorewsClient
func (*GorewsClient) IsConnected ¶
func (c *GorewsClient) IsConnected() bool
func (*GorewsClient) Stop ¶
func (c *GorewsClient) Stop()
type OnConnectedCallback ¶
type OnConnectedCallback func(*GorewsClient)
Click to show internal directories.
Click to hide internal directories.