pomelo icon indicating copy to clipboard operation
pomelo copied to clipboard

UID is Null

Open renatodex opened this issue 11 years ago • 2 comments

Im trying to use Channels. But for that i need to know the Session UID.

However, when i console.log the session varable in my handler, i got this:

screen shot 2015-02-15 at 16 39 35

What i am doing wrong? The server should not auto generate these UIDs?

renatodex avatar Feb 15 '15 18:02 renatodex

Look at these chat of pomelo example: https://github.com/NetEase/chatofpomelo/blob/master/game-server/app/servers/connector/handler/entryHandler.js

uid is generated manually:

var uid = msg.username + '*' + rid;

impcyber avatar Feb 16 '15 07:02 impcyber

Oh, i see. Thanks!

renatodex avatar Feb 16 '15 14:02 renatodex