directus-monorepo ( Readme | API )
directus-monorepo > WebSocketService
new WebSocketService():
WebSocketService
api/src/services/websocket.ts:14
private
controller:WebSocketController
api/src/services/websocket.ts:12
broadcast(
message
,filter
?):void
Parameter | Type |
---|---|
message |
string | objectOutputType < {type : ZodString ; uid : ZodOptional < ZodUnion < [ZodString , ZodNumber ] > >;}, ZodTypeAny , "passthrough" > |
filter ? |
object |
filter.role ? |
string |
filter.user ? |
string |
void
api/src/services/websocket.ts:36
clients():
Set
<WebSocketClient
>
Set
< WebSocketClient
>
api/src/services/websocket.ts:44
off(
event
,callback
):void
Parameter | Type |
---|---|
event |
"connect" | "message" | "error" | "close" |
callback |
ActionHandler |
void
api/src/services/websocket.ts:32
on(
event
,callback
):void
Parameter | Type |
---|---|
event |
"connect" | "message" | "error" | "close" |
callback |
ActionHandler |
void
api/src/services/websocket.ts:28
Generated using TypeDoc and typedoc-plugin-markdown