API Gateway WebSocket Connection Service, REST: Connection.Send
Статья создана
Обновлена 26 ноября 2024 г.
Sends data to the specified connection.
HTTP request
POST https://apigateway-connections.api.cloud.yandex.net/apigateways/websocket/v1/connections/{connectionId}:send
Path parameters
Field |
Description |
connectionId |
string Required field. ID of the connection to which send. |
Body parameters
{
"data": "string",
"type": "string"
}
Field |
Description |
data |
string (bytes) Required field. Data to send. |
type |
enum (DataType) Type of the sending data.
|
Response
HTTP Code: 200 - OK