rpc_websocket

« Previous section Next section »

UCloud Developer Guide / Developing UCloud / Micro Library Reference / RPC / RPC WebSocket

RPC WebSocket

Configures the websocket backend for this call.

Added via websocket(path: String). This will cause the server to start listening for websocket connections at path.

Examples

Example: Configure websockets for a call

websocket(baseContext) // baseContext = "/api/tasks"

Last updated