StackExchange / NetGain

A high performance websocket server library powering Stack Overflow.
MIT License
928 stars 141 forks source link

What information can I send from the client to server OnOpened() ? #12

Open jalchr opened 8 years ago

jalchr commented 8 years ago

Sorry if those questions seem trivial. I have not found any documentation. Can I send the "Username" on open connection ? Or this is done at OnAuthenticate?

How can distinguish users right from the start ?

Thanks

pjanning commented 8 years ago

I made this example for Netgain: https://github.com/pjanning/NetGain-ChatExample/tree/master/NetGain

Just have a look at the ChatTcpServer.cs.