Constructors
constructor
- new Client(url, options?): Client
Parameters
- url: string
Optional
options: {}
Methods
addExtension
- addExtension(ext): void
Returns void
setHeader
- setHeader(name, value): void
Parameters
- name: string
- value: string
Returns void
subscribe
- subscribe(channelName, listener?): Subscription
Parameters
- channelName: string
Optional
listener: Function
unsubscribe
- unsubscribe(channelName, subscr): void
Returns void