Skip to main content
POST
/
ws
/
chat
Subscribe: Chat
curl --request POST \
  --url wss://api.ondoperps.xyz/ws/chat \
  --header 'Content-Type: application/json' \
  --data '
{
  "op": "subscribe",
  "channel": "chat"
}
'
{
  "data": {
    "type": "message",
    "status": "complete",
    "content": "<string>",
    "timestamp": "2023-11-07T05:31:56Z"
  }
}

Body

application/json
op
enum<string>
required

Operation type.

Available options:
subscribe,
unsubscribe
Example:

"subscribe"

channel
enum<string>
required

Channel for this subscription.

Available options:
chat
Example:

"chat"

Response

200 - application/json

Channel update for chat

type
enum<string>
Available options:
update
channel
enum<string>
Available options:
chat
data
object