@dypai-ai/client-sdk - v1.12.0
DYPAI
GitHub
Preparing search index...
react/useChannel
UseChannelOptions
Interface UseChannelOptions
interface
UseChannelOptions
{
enabled
?:
boolean
;
onBroadcast
?:
(
message
:
BroadcastMessage
)
=>
void
;
onJoin
?:
(
userId
:
string
,
data
:
PresenceEntry
)
=>
void
;
onLeave
?:
(
userId
:
string
,
data
:
PresenceEntry
)
=>
void
;
presence
?:
boolean
|
Record
<
string
,
any
>
;
}
Index
Properties
enabled?
on
Broadcast?
on
Join?
on
Leave?
presence?
Properties
Optional
enabled
enabled
?:
boolean
Optional
on
Broadcast
onBroadcast
?:
(
message
:
BroadcastMessage
)
=>
void
Optional
on
Join
onJoin
?:
(
userId
:
string
,
data
:
PresenceEntry
)
=>
void
Optional
on
Leave
onLeave
?:
(
userId
:
string
,
data
:
PresenceEntry
)
=>
void
Optional
presence
presence
?:
boolean
|
Record
<
string
,
any
>
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
enabled
on
Broadcast
on
Join
on
Leave
presence
DYPAI
GitHub
@dypai-ai/client-sdk - v1.12.0
Loading...