DEV Community

Discussion on: What do you use to create REST APIs with WebSockets?

Collapse
 
oxygen profile image
oxygen • Edited

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...