Dne 02. 11. 2012 18:52, piše Esteban A. Maringolo:

>>> The demo site doesn't seem to work, the buttons are disabled, but I
>>> believe
>>> you it works! :)

>> Which browser and which version do you use? Do you have in red a warning
>> that your browser is not supported?
>>
>> I need to catch that problem which seems to happen on not-recent
>> WebSocket enabled browsers, so your info will be very valuable.

> Google Chrome Version 22.0.1229.94 m, Windows 7 Professional
> 
> Looking at the developer console, there is a websocket created, but with
> status 101 (pending)

Esteban, can reload the page (to refresh JS) and try again?

I namely improved detection of WebSocket if it is really open. You can
also open Chrome devtools to see if button press sends WebSockets
message or plain Ajax one. Reload a page, click WebSocket in footer of
devtools (tab Network), then on the left click the only choice websocket
/aidasession and you'll see all WS messages sent so far.

Best regards
Janko


> 
> This is the HAR for the connection:
> 
> {
>   "startedDateTime": "2012-11-02T17:50:17.319Z",
>   "time": -1,
>   "request": {
>     "method": "GET",
>     "url":
> "ws://demo.aidaweb.si/aidasession/websocket?pageurl=/demos?view=realtime",
>     "httpVersion": "HTTP/1.1",
>     "headers": [
>       {
>         "name": "Origin",
>         "value": "http://demo.aidaweb.si";
>       },
>       {
>         "name": "Connection",
>         "value": "Upgrade"
>       },
>       {
>         "name": "Sec-WebSocket-Extensions",
>         "value": "x-webkit-deflate-frame"
>       },
>       {
>         "name": "Host",
>         "value": "demo.aidaweb.si"
>       },
>       {
>         "name": "Sec-WebSocket-Key",
>         "value": "fDT6RMiJRCTBSMOQlAAzfw=="
>       },
>       {
>         "name": "Upgrade",
>         "value": "websocket"
>       },
>       {
>         "name": "Sec-WebSocket-Version",
>         "value": "13"
>       }
>     ],
>     "queryString": [
>       {
>         "name": "pageurl",
>         "value": "/demos"
>       }
>     ],
>     "cookies": [],
>     "headersSize": 86,
>     "bodySize": 0
>   },
>   "response": {
>     "status": 101,
>     "statusText": "WebSocket Protocol Handshake",
>     "httpVersion": "HTTP/1.1",
>     "headers": [
>       {
>         "name": "Date",
>         "value": "Fri, 02 Nov 2012 18:50:19 GMT"
>       },
>       {
>         "name": "Connection",
>         "value": "Upgrade"
>       },
>       {
>         "name": "Content-Length",
>         "value": "0"
>       },
>       {
>         "name": "Server",
>         "value": "Swazoo 2.3 Smalltalk Web Server"
>       },
>       {
>         "name": "Upgrade",
>         "value": "websocket"
>       },
>       {
>         "name": "Sec-WebSocket-Accept",
>         "value": "JQglwpGvhMsAoUM2dc1d1GG3Dt0="
>       }
>     ],
>     "cookies": [],
>     "content": {
>       "size": 0,
>       "compression": 0
>     },
>     "redirectURL": "",
>     "headersSize": 13,
>     "bodySize": 0
>   },
>   "cache": {},
>   "timings": {
>     "blocked": 0,
>     "dns": -1,
>     "connect": -1,
>     "send": -1,
>     "wait": -1,
>     "receive": -1,
>     "ssl": -1
>   },
>   "pageref": "page_1"
> }
> 
> 
> Regards!
> 
> 
> 
> --
> View this message in context: 
> http://forum.world.st/Aida-with-Realtime-WebSockets-support-released-tp4653512p4653793.html
> Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
> 
> 

-- 
Janko Mivšek
Aida/Web
Smalltalk Web Application Server
http://www.aidaweb.si

Reply via email to