palbaseDocs

Palbase Realtime · API

PUT/realtime/limits

Set the limits

Sets the limits the project holds its clients to: connections open at once, events (broadcasts and state writes) and joins per second, channels per connection. null is the platform's; a value above the platform's has no effect beyond it.

Called by your server, with the project's secret key.

Request body

max_channels_per_connectioninteger · optionalChannels one connection may be on; null: the platform's.
max_connectionsinteger · optionalConnections open at once; null: the platform's.
max_events_per_secondinteger · optionalBroadcasts and state writes per second; null: the platform's.
max_joins_per_secondinteger · optionalChannel joins per second; null: the platform's.
curl
curl -X PUT "https://<your-ref>.palbase.studio/realtime/limits" \
  -H "apikey: $PALBASE_SECRET_KEY" \
  -H "content-type: application/json" \
  -d '{"max_channels_per_connection":1,"max_connections":1,"max_events_per_second":1,"max_joins_per_second":1}'

Responses

200The limits, in force

400The request is malformed: a field, a channel or a pattern is wrong

401No key, or not a key of this project, or a token that is not valid (the edge's answer)

403Not the project's secret key

429The project's request rate, its realtime quota for the period, or the connections it allows are used up; Retry-After says when to try again

503The platform could not answer now; retrying is safe (Retry-After)

defaultAn error: the envelope names it (`error`) and explains it (`error_description`).

Operation PutLimits of realtime's contract.