Ask coding questions

← Back to all posts
Fixed Socket ID
Geocube101 (341)

Is it possible to get a fixed ID for a socket (I'm using the socket.io module with node.js)
I've tried socket.id but it changes every time the page refreshes
Also tried socket.handshake.address but it only uses the repl's host computer IP

(Still some issues with styling as this project is very WIP)