Class: WsClient
Constructors
new WsClient(client)
new WsClient(
client
):WsClient
Parameters
Parameter | Type |
---|---|
client | Kient |
Returns
Properties
Modifier | Property | Type | Description |
---|---|---|---|
private | PUSHER_APP_KEY | "32cbd69e4b950bf97679" | - |
private | _client | Kient | - |
private | pusher | default | - |
Methods
handlePusherAuthentication()
private
handlePusherAuthentication(params
,callback
):void
Parameters
Parameter | Type |
---|---|
params | ChannelAuthorizationRequestParams |
callback | ChannelAuthorizationCallback |
Returns
void
subscribe()
subscribe(
channel
):Promise
<default
>
Parameters
Parameter | Type |
---|---|
channel | string |
Returns
Promise
<default
>
unsubscribe()
unsubscribe(
channel
):Promise
<void
>
Parameters
Parameter | Type |
---|---|
channel | string |
Returns
Promise
<void
>
Generated using typedoc-plugin-markdown and TypeDoc