[atmosphere-users] followup to socket.io question

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[atmosphere-users] followup to socket.io question

survivant
Hello,

I want to answer to the guy that had problem with embedded Socket.IO. 


I ran the demo : playground.zip  and find out that the output URL was


.../socket.io/1/xhr-polling/CC2B24CC488F38CC4D15E52BF0829790E12652E8?id=a36153fa-c3a6-4905-92c8-08fe1e2c6a7c&t=1348316277394


but in Socket.io spec the format must be :

[scheme] '://' [host] '/' [namespace] '/' [protocol version] '/' [transport id] '/' [session id] '/' ( '?' [query] )

so, it need a "/" before ?

.../socket.io/1/xhr-polling/CC2B24CC488F38CC4D15E52BF0829790E12652E8/?id=a36153fa-c3a6-
4905-92c8-08fe1e2c6a7c&t=1348316277394

In the current implementation, we use the sessionid to retreive the outbound connection (suspended connection).  if the sessionid is invalid, the outbound will be NULL.


hope that can help


--
-------------
A+

Sébastien.

Vous pouvez me suivre sur Twitter / You can follow me on Twitter : http://twitter.com/survivant
Reply | Threaded
Open this post in threaded view
|

[atmosphere-users] Re: followup to socket.io question

survivant

Can you resend me a zip file and how to reproduce the problem and I will retest it with the latest build.

Thanks

On Sep 24, 2012 11:15 PM, "Chris Wong" <[hidden email]> wrote:
Hi Sébastien,

If you're referring my post here, I added the '/' before '?' but it still doesn't work.  The /demo-mgr/?action=start isn't a socket.io request.  It simply enters that on the browser window and hence it's just a HTTP GET request.  Why would that affect the Chat socket.io handler?  That's really strange.

Chris

On Monday, September 24, 2012 7:28:41 PM UTC-5, Sebastien Dionne wrote:
Hello,

I want to answer to the guy that had problem with embedded Socket.IO. 


I ran the demo : playground.zip  and find out that the output URL was


.../socket.io/1/xhr-polling/CC2B24CC488F38CC4D15E52BF0829790E12652E8?id=a36153fa-c3a6-4905-92c8-08fe1e2c6a7c&t=1348316277394


but in Socket.io spec the format must be :

[scheme] '://' [host] '/' [namespace] '/' [protocol version] '/' [transport id] '/' [session id] '/' ( '?' [query] )

so, it need a "/" before ?

.../socket.io/1/xhr-polling/CC2B24CC488F38CC4D15E52BF0829790E12652E8/?id=a36153fa-c3a6-
4905-92c8-08fe1e2c6a7c&t=1348316277394

In the current implementation, we use the sessionid to retreive the outbound connection (suspended connection).  if the sessionid is invalid, the outbound will be NULL.


hope that can help


--
-------------
A+

Sébastien.

Vous pouvez me suivre sur Twitter / You can follow me on Twitter : http://twitter.com/survivant