@dypai-ai/client-sdk - v1.12.0
DYPAI
GitHub
Preparing search index...
modules/realtime/RealtimeClient
DypaiRealtimeClient
Class DypaiRealtimeClient
Index
Constructors
constructor
Methods
channel
disconnect
get
Channels
remove
All
Channels
remove
Channel
set
Auth
Constructors
constructor
new
DypaiRealtimeClient
(
baseUrl
:
string
,
tokenProvider
:
()
=>
string
|
null
,
)
:
DypaiRealtimeClient
Parameters
baseUrl
:
string
tokenProvider
:
()
=>
string
|
null
Returns
DypaiRealtimeClient
Methods
channel
channel
(
topic
:
string
,
config
?:
{
config
?:
ChannelConfig
}
)
:
RealtimeChannel
Parameters
topic
:
string
Optional
config
:
{
config
?:
ChannelConfig
}
Returns
RealtimeChannel
disconnect
disconnect
()
:
void
Returns
void
get
Channels
getChannels
()
:
RealtimeChannel
[]
Returns
RealtimeChannel
[]
remove
All
Channels
removeAllChannels
()
:
Promise
<
void
>
Returns
Promise
<
void
>
remove
Channel
removeChannel
(
channel
:
RealtimeChannel
)
:
Promise
<
void
>
Parameters
channel
:
RealtimeChannel
Returns
Promise
<
void
>
set
Auth
setAuth
(
token
?:
string
|
null
)
:
Promise
<
void
>
Update auth token. Reconnects with new token if currently connected.
Parameters
Optional
token
:
string
|
null
Returns
Promise
<
void
>
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
channel
disconnect
get
Channels
remove
All
Channels
remove
Channel
set
Auth
DYPAI
GitHub
@dypai-ai/client-sdk - v1.12.0
Loading...
Update auth token. Reconnects with new token if currently connected.