Documentation
¶
Index ¶
Constants ¶
View Source
const ( ME = "Go-Pusher-avd" VERSION = "0.2" PROTOCOL_VERSION = "7" EVENT_CHANNEL_BUFF_SIZE = 1000 // events channel buffer size HEARTBEAT_RATE = 30 // time in second between 2 beats )
ME and other consts describe the library.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a pusher client.
func NewCustomClient ¶
NewCustomClient initialize & return a Pusher client for given host and sheme.
func (*Client) Bind ¶
Bind an event. Bind returns a channel, where events will be sent. The channel will be closed, if a websocket read error occurs.
func (*Client) Unsubscribe ¶
Unsubscribe from a channel
Click to show internal directories.
Click to hide internal directories.