Skip to main content

admin_setMaxSubscriptionPerWSConn

The setMaxSubscriptionPerWSConn is an administrative method that sets the maximum allowed number of subscriptions per single WebSocket connection. For example, if the maximum number is set to five and a user requests more than five subscriptions through the klay_subscribe API, an error message "Maximum 5 subscriptions are allowed for a WebSocket connection" will be displayed. This feature is supported since Kaia 1.6.0.

JSONRPC: admin_setMaxSubscriptionPerWSConn

Request

Responses

Return null if the limit is set successfully; otherwise, it returns an error message.

Make this page better