Skip to main content
Version: Streamsheets 3.0

WEBSOCKET.SEND

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.

Listens to incoming messages for the given WebSocket connection and places them into the given target.

Syntax

=WEBSOCKET.SEND(Connection, Message)

Arguments

NameTypeDescription
ConnectionConnectionWebSocket connection created with WEBSOCKET.CONNECT.
MessageStringThe message to send.

Return

TypeDescription
BooleanTRUE, if no error.

Examples

FormulaResultComment
=WEBSOCKET.SEND("ws://www.example.org",JSON(A1:B2))
TRUEOpens a WebSocket connection and send the given JSON.