MeshServices from @offline-protocol/mesh-sdk. These signatures match v0.27.0. Read the integration guide for prerequisites and complete usage.
Service requests and responses are signed plaintext, not MLS-encrypted. Keep their metadata and bodies non-sensitive. Your application authorizes callers and correlates responses.
Methods on this page
registerService
Registers a local service that this node offers for discovery by other peers.unregisterService
Unregisters a local service. returns: true if the service was found and removeddiscoverServices
Broadcasts a service discovery query to the mesh. Responses arrive asynchronously asservice_discovered events.
returns: Query ID for correlating responses
sendServiceRequest
Sends a service request to a specific provider peer. The response arrives as aservice_response_received event.
returns: Request ID for correlating the response
respondToServiceRequest
Responds to a service request from another peer. Call this after receiving aservice_request_received event.
returns: Message ID of the response

