I\'m building an application where I\'d like a unique identifier for every connection for the duration that the app is running and I\'m wondering if socket.id works for this
Assuming that you're using socket.io@0.9.x (which is the present version in NPM), the code that generates a new id for each connection/client can be found here.
I think that you can safely assume that each socket id is going to be unique.