Directus / @directus/sdk / realtime / messageCallback
Function: messageCallback() ​
messageCallback(
socket
,timeout
):Promise
<undefined
|Record
<string
,any
> |MessageEvent
<string
>>
Wait for a websocket response
Parameters ​
• socket: WebSocketInterface
WebSocket
• timeout: number
= 1000
Returns ​
Promise
<undefined
| Record
<string
, any
> | MessageEvent
<string
>>
Incoming message object