Atmosphere/atmosphere — Issue #215: jquery-pubsub 0.8.6 first push seems to be incorrect
Author: maxqua72
Created: 2012-03-08 21:44:09+00:00
State: open

Hi,
I'm trying to use atmosphere 0.8.6 in my project but I'm having
problems with the first push: two clients subscribe when the first
pushes some data the other does not receive anything.
I moved to the atmosphere sample jquery-pubsub and I realized it
doesn't work either as I expected.
Here is the test case:
1. client1 FF
2. client2 IE9
3. client1 chose the topic "pippo" and select websocket as protocol
4. client2 chose the same topic and select websocket as well
5. then client2 start sending a message and the message displayed on
IE window is
Message Received: hlkhlkjhlkjhlkjh sent using streaming but detected
transport is streaming
that's strange: client2 selected websocket! I guess IE9 doesn't
support websocket.
6. client1 does not receive anything (the callback is not called) - no
log in the firebug console

details in
http://groups.google.com/group/atmosphere-framework/browse_thread/thread/315303bb1a90985d/43ed132aacefdb6d

----
I've tested also with 0.9 with the same result.
here is the log

22:38:34.572 [qtp1747306536-13] DEBUG o.a.container.JettyWebSocketUtil - WebSocket-checkOrigin request /pubsub-0.8.6/pubsub/pippo with origin http://localhost:8080
22:38:34.572 [qtp1747306536-13] DEBUG o.a.container.JettyWebSocketUtil - WebSocket-connect request /pubsub-0.8.6/pubsub/pippo with protocol null
22:38:34.572 [qtp1747306536-13] DEBUG o.a.websocket.WebSocketProcessor - Atmosphere detected WebSocket: org.atmosphere.container.version.Jetty8WebSocket
22:38:34.573 [qtp1747306536-13] DEBUG o.atmosphere.jersey.AtmosphereFilter - Linked HttpServletRequest org.atmosphere.cpr.AtmosphereRequest@29399f26 with ContainerResponse com.sun.jersey.spi.container.ContainerResponse@5ff8cef
22:38:34.574 [qtp1747306536-13] INFO o.a.samples.pubsub.EventsLogger - onSuspend(): 127.0.0.1:54274
22:38:34.574 [qtp1747306536-13] DEBUG o.a.container.JettyWebSocketUtil - Suspending response: org.atmosphere.cpr.AtmosphereResponse@4c7da1fc
22:38:34.574 [qtp1747306536-13] INFO o.a.samples.pubsub.EventsLogger - onConnect(): WebSocketEvent{message='', type=CONNECT, webSocket=org.atmosphere.container.version.Jetty8WebSocket@4c15ce9f}