wwRPC: web-to-web RPC
wwRPC uses REST-style RPC operations over the WebSocket in IoT devices. The wwRPC aims to help IoT devices to make REST-style RPC calls. In addition, it is the underlying component of WoT.City software framework that can be accordingly used in a peer-to-peer IoT network.
rpc = new RPC(from, to)
Create a new wwRPC instance.
- from is the URI of the sender, for example
- to is the URI of the receiver, for example
Send a RPC message.
message must be serialized before sending.
Serializ a RPC message.
Deserialize a RPC message.