LearnBoost/socket.io — pull request #858 by martinthomson (2012-04-26 23:29:27+00:00)
Title: Adding pluggable ID generation see #497

I want control over session IDs (see #497), but I don't need to give that control to the client. This enables both options.

In my example, I am embedding application state in the session ID so that I can forward messages to back end processing without maintaining additional mappings.

I've also added the ability to get the handshake data through to the ID generator and for the authorize method to add to or override the handshake data. This was obviously intended originally, but never quite connected up (repeated use of ``newData || handshakeData''). This handshake data can be seen by the ID generator as well in order to advise in its processing.

A few more tests added to cover these capabilities.