fixes #70

Ok, I have the protocol stuff already in another branch. Will work on it the next days.


> Am 14/06/2014 um 23:26 schrieb Tobias Oberstein <notifications@github.com>:
> 
> In package/lib/session.js:
> 
> > @@ -783,9 +783,9 @@ var Session = function (socket, defer, onchallenge) {
> >     self._MESSAGE_MAP[MSG_TYPE.INVOCATION] = self._process_INVOCATION;
> >  
> >  
> > -   self._socket.onmessage = function (evt) {
> For long-poll, the request result of the HTTP/POST should be split after \30 and each resulting string be passed through the serializer (JSON, MsgPack, ..) to obtain objects for each message. I guess that means Session should not know about serializers, and the _socket.onmessage function should receive messages as host language arrays instead of byte strings.
> 
> —
> Reply to this email directly or view it on GitHub.