@botsquad/sdk
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Manager
constructor
channel
current
Badge
Count
on
Badge
Count
Update
on
Event
presence
get
Badge
Count
get
Current
Badge
Count
join
join
Channel
on
Receive
Event
put
User
Info
retrieve
Conversations
sync
Presence
On
Event
Hierarchy
Manager
Index
Constructors
constructor
Properties
channel
current
Badge
Count
on
Badge
Count
Update
on
Event
presence
Methods
get
Badge
Count
get
Current
Badge
Count
join
join
Channel
on
Receive
Event
put
User
Info
retrieve
Conversations
sync
Presence
Constructors
constructor
new
Manager
(
socket
:
Socket
, config
:
Config
, onEvent
:
OnEvent
)
:
Manager
Parameters
socket:
Socket
config:
Config
onEvent:
OnEvent
Returns
Manager
Properties
Private
channel
channel
:
Channel
Private
current
Badge
Count
current
Badge
Count
:
number
= 0
on
Badge
Count
Update
on
Badge
Count
Update
:
SimpleEventDispatcher
<
number
>
= new SimpleEventDispatcher<number>()
on
Event
on
Event
:
OnEvent
Private
Optional
presence
presence
:
Presence
Methods
Private
get
Badge
Count
get
Badge
Count
(
)
:
Promise
<
number
>
Returns
Promise
<
number
>
get
Current
Badge
Count
get
Current
Badge
Count
(
)
:
number
Returns
number
join
join
(
)
:
Promise
<
ConversationsJoinResponse
>
Returns
Promise
<
ConversationsJoinResponse
>
Private
join
Channel
join
Channel
(
)
:
Promise
<
ConversationsChannelJoinResponse
>
Returns
Promise
<
ConversationsChannelJoinResponse
>
Private
on
Receive
Event
on
Receive
Event
(
__namedParameters
:
object
)
:
void
Parameters
__namedParameters:
object
json
:
string
name
:
string
sender
:
string
Returns
void
put
User
Info
put
User
Info
(
info
:
UserInfo
)
:
Promise
<
UserInfo
>
Parameters
info:
UserInfo
Returns
Promise
<
UserInfo
>
Private
retrieve
Conversations
retrieve
Conversations
(
)
:
Promise
<
ConversationsListResponse
>
Returns
Promise
<
ConversationsListResponse
>
Private
sync
Presence
sync
Presence
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
Generated using
TypeDoc