-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auto reconnect? #99
Comments
Add these parameters in constructor options. eg:
in this case I'm setting the reconnection to try every 100ms. |
And what I need to do is create a new stream after reconnect?
|
The settings you pass within the connect event should remain constant once reconnection occurs. Test the code with reconnect options and post your output (just use simple console logs on server and client to register events).
… On 4 Feb. 2017, at 6:57 pm, tiaod ***@***.***> wrote:
And what I need to do is create a new stream after reconnect?
socket.on('connect', ()=>{
var stream = ss.createStream()
ss(socket).emit('dnode',stream)
d.pipe(stream).pipe(d)
})
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No description provided.
The text was updated successfully, but these errors were encountered: