Skip to main content

Fundamentals

The BlobHub WebSocket protocol is designed to be used in real-time applications, allowing for efficient and low-latency data exchange between clients and servers.

Messages

All messages between clients and BlobHub server follow the JSON-RPC 2.0 specification.

Requests

Requests are sent from the client to the server or vice versa, to initiate an operation.

Responses

Responses are sent in reply to requests, containing the result or error of the operation.

Errors

An error response carries the request’s id and an error object. data.error is a machine-readable name and is present on the errors that have one; data may carry more, such as the limit that refused the request.

Error Codes

The following standard error codes are used in the protocol: The errors of each method are listed with it, for example under Listener.