All APIs are fundamentally RPC. For example, if you would use JSON-RPC over HTTP it could still be considered REST as long as you follow REST principles (the JSON-RPC would be just be a standard way to represent all requests and all responses).
Here’s a library that allows you to export APIs over both HTTP and WebSocket on the same server
All APIs are fundamentally RPC. For example, if you would use JSON-RPC over HTTP it could still be considered REST as long as you follow REST principles (the JSON-RPC would be just be a standard way to represent all requests and all responses).
Here’s a library that allows you to export APIs over both HTTP and WebSocket on the same server
github.com/bigstepinc/jsonrpc-bidi...