Establishes WebSocket connection with channel and subtopic
GETwss://apis.<domain>/iot/ws/channels/:id/messages/:subtopic
Authorization: http
name: thingAuthtype: httpscheme: bearerbearerFormat: uuiddescription: * Things access: "Authorization: Thing <thing_key>"
Establishes WebSocket connection with the specified channel and subtopic. This endpoint is used to establish a connection that can be used to receive real-time messages from a specific subtopic within a channel.
Request
Path Parameters
id uuidrequired
Unique channel identifier.
subtopic stringrequired
Subtopic to subscribe to, can include multiple segments
Responses
- 101
- 400
- 401
- 403
- 404
WebSocket connection established successfully.
Bad request due to empty channel ID, malformed subtopic, or malformed entity.
Missing or invalid access token provided.
Forbidden access to the requested channel.
The specified channel was not found.
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X GET 'wss://apis.<domain>/iot/ws/channels/:id/messages/:subtopic' \
-H 'Authorization: Bearer <TOKEN>'