rapace-transport-websocket
WebSocket transport for rapace RPC.
Enable RPC communication over WebSocket connections for browser clients and web servers.
Features
- Browser support: WebAssembly clients in the browser
- Server-side WebSocket: Accept WebSocket connections from web clients
- Cross-platform: Works on both native and WASM targets
Usage
Native server:
use RpcSession;
use WebSocketTransport;
// Accept WebSocket connections...
WASM client:
use RpcSession;
use WebSocketTransport;
let transport = connect.await?;
let session = new;
License
Licensed under either of:
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.