A
A
areaofdefect2016-06-24 20:19:48
JavaScript
areaofdefect, 2016-06-24 20:19:48

What is the equivalent of "connect.id" in Node.js?

I'm trying to implement "authorization using MySQL" on node.js
In a nutshell, I'll describe the key steps:
1) When the application starts, it connects to my WebSocketServer'y
2) When entering login / pass, the server checks if the pair is valid or not. If login & pas are correct, then in MySQL the `online` table is changed to 'yes' (for the corresponding login)
. And then the question arises. How to determine who exactly disconnected? Those. what is his login?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
areaofdefect, 2016-06-28
@areaofdefect

It's simple,
https://github.com/websockets/ws/issues/466

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question