You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for open sourcing this library. We're having this issue where the process is not exiting after stopping the client. We're on 7.6.0. This code should replicate the problem:
constWebSocket=require("rpc-websockets").Client;constclient=newWebSocket("ws://localhost:39652");client.close();console.log("Program should exit after this");
The text was updated successfully, but these errors were encountered:
The clients polls for connection with new WebSocket first and then issues the 'open' event afterwards. You can use close right after. What's the use-case for this, though?
It works like this:
var WebSocket = require('rpc-websockets').Client
const client = new WebSocket("ws://localhost:39652");
client.on('open', function() {
console.log('socket opened')
client.close();
console.log("Program should exit after this");
})
Thank you for open sourcing this library. We're having this issue where the process is not exiting after stopping the client. We're on 7.6.0. This code should replicate the problem:
The text was updated successfully, but these errors were encountered: