{"library":"reconnect-ws","type":"library","category":null,"description":"A lightweight Node.js module that provides automatic reconnection for websocket-streams when the connection drops. Based on reconnect-core, it wraps websocket-stream to create a persistent stream that reconnects on failure. Version 0.1.0 is the latest release; the package has seen no updates since 2013 and should be considered in maintenance mode. It is a thin wrapper around websocket-stream and depends on both ws and websocket-stream. Compared to alternatives like reconnecting-websocket, it uses the stream API which may be preferable in streaming contexts but is less flexible for non-stream usage.","language":"javascript","status":"maintenance","version":"0.1.0","tags":["javascript","reconnect","websocket","ws","stream"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install reconnect-ws","imports":["var reconnect = require('reconnect-ws');","var instance = require('reconnect-ws')(function(stream) { ... });","reconnect(function(stream) { ... }).on('reconnect', function(n) { ... });"]},{"cmd":"yarn add reconnect-ws","imports":[]},{"cmd":"pnpm add reconnect-ws","imports":[]}],"homepage":"https://github.com/jacobbubu/reconnect-ws","github":"git://github.com/jacobbubu/reconnect-ws","docs":null,"changelog":null,"pypi":null,"npm":"reconnect-ws","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}