Documentation ¶
Index ¶
Constants ¶
View Source
const ( VERSION = "1.0" MINIMUM_VERSION = "1.0" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client allows connecting to a Bayeux server and subscribing to channels.
func NewClient ¶
NewClient initialises a new Bayeux client. By default `http.DefaultClient` is used for HTTP connections.
func (*Client) Close ¶
Close notifies the Bayeux server of the intent to disconnect and terminates the background polling loop.
func (*Client) Connect ¶
Connect performs a handshake with the server and will repeatedly initiate a long-polling connection until `Close` is called on the client.
func (*Client) SubscribeExt ¶
SubscribeExt creates a new subscription on the Bayeux server. Messages for the subscription will be delivered on the given channel `out`. If the client has not performed a handshake already, it will do so first.
func (*Client) Unsubscribe ¶
Click to show internal directories.
Click to hide internal directories.