rpc-websockets
rpc-websockets copied to clipboard
JSON-RPC 2.0 implementation over WebSockets for Node.js and JavaScript/TypeScript
# How to run ws on the same port as a http Express? I tried the example `express-session-parse` given by `ws` [(link)](https://github.com/websockets/ws/tree/master/examples/express-session-parse), and replace the `const { WebSocketServer } =...
Hi! 👋 Firstly, thanks for your work on this project! 🙂 Today I used [patch-package](https://github.com/ds300/patch-package) to patch `[email protected]` for the project I'm working on. whitebit.com sends "error: null" and I...
is it possible to know if subscriber received the message when using the emit method ? thank you
``` server.register(method, handler[, namespace]) -> RPCMethod ``` this should be available to client also to support server callback.
After i deployed my app on heroku i had an issue, if you can help me please ``` const app = express() const port = process.env.PORT || 8080 // Heroku...
Hi, I've created an event inside a namespace: ``` [...] server.event(name, ns); [...] ``` Then I use this command to emit a new event: ``` [...] server.emit(name, state); [...] ```...
Hi there. I'm setting up a public server to test an RPC call from anywhere, but when it comes to call an RPC function it returns: `{ code: -32601, message:...
I'm trying to debug a weird intermittent issue where the client sometimes is not able to create/connect to the websocket. I have a simple setup: ``` const ws = new...
Hello and thanks for this great JSON-RPC 2.0 implementation Anyway i was looking around your implementation and found that in **Client** APIs the "protocols" is not being passed to "window.WebSocket"....
This is the code for emit on the top level (not namespace) with considerations of subscribers ``` // forward emitted event to subscribers this.on(name, (...params) => { // flatten an...