D
D
Drum Kit2016-03-01 10:22:08
Node.js
Drum Kit, 2016-03-01 10:22:08

How for one user of the user to keep one connection in socket.io?

In socket.io, I need to have one socket per user and currently a connection is created on every reboot

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly Sivkov, 2016-03-01
@arayik

The old connection is being closed if you're worried about that.
If you need to correlate a specific user with his connection, use a session and get information from it on reboot.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question