Lightweight RPC support for the ws WebSocket server