temporary fix:
within websockets.js add the following code inside the if(uid) block (inside io.socket.connect):
if(!global.socketlogin) global.socketlogin = {};
global.socketlogin[sessionID] = uid;
then after an ajax call ( app.get ) in webserver.js for example,
global.socketlogin[req.sessionID])
will show if the current user is logged in.