WEBSOCKET.LISTEN
Premium
The WebSocket API is an advanced technology that makes it possible to open a two-way interactive communication session between the user(client) and the server. With this API, you can send messages to a server and receive event-driven responses without having to poll the server for a reply.
Sends a WebSocket message using the given WebSocket connection.
Syntax
=WEBSOCKET.LISTEN(Connection, Target)
Arguments
Name | Type | Description |
---|---|---|
Connection | Connection | WebSocket connection created with WEBSOCKET.CONNECT. |
Target | Target | INBOX(), OUTBOX("MsgID") or a cell range where the incoming WebSocket messages will be placed. |
Return
Type | Description |
---|---|
Boolean | TRUE, if no error. |
Examples
Formula | Result | Comment |
---|---|---|
| TRUE | Opens a WebSocket connection and send the given JSON. |