Skip to main content

Publish an Event

Publish an Event

POSThttps://api.hivekit.io/v2/realm/[realmId]/publish/[eventName]

Publishes an event on a given channel/with a given event name. This event can be received by subscribers to this channel. Given the request/response nature of REST APIs only publishing is supported, for subscribing to events use a Hivekit Client SDK or connect via Websockets/TCP/MQTT.

Request Body

{ 
"data": { // optional
"some": "event data"
}
}

Response Body

{
"result": "success"
}