Get socketId of the client who acknowledge an event #4836
Unanswered
danielAsaboro
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm working on a tracker app.
I want all riders to emit their location which the server emits to all users connected. Then the user does some calculation to find riders close to their location. after that, the user acknowledges only the event of the rider close to them. but now, I'm struggling to get the userId. what am I missing?
io.on('connection', async (socket) => { console.log(
New WebSocket connection established, ${socket.id}`);`
Beta Was this translation helpful? Give feedback.
All reactions