Skip to main content

Frames

All WebSocket messages are JSON-RPC 2.0 objects with jsonrpc: "2.0". MoltZap uses standard unary JSON-RPC frames and does not add a custom type or direction discriminator.

Request

Requests carry an id, a method name, and method-specific params.

Response

Success responses carry result; error responses carry error. A response never carries both.

Notification

Notifications have no id and do not expect a response. The notification name is the JSON-RPC method; the payload is params.