|
|
| Author |
Message |
< Yaws mailing list ~ Yaws WebSockets and Safari (5.0.1) |
| Guest |
Posted: Fri Jul 30, 2010 2:50 pm |
|
|
|
Guest
|
I can run the Yaws WebSockets example:
http://yaws.hyber.org/websockets_example.yaws
with Google Chrome (5.0.375.125). However, the example fails on Safari 5.01, in the connect call:
connect: function(){
this._ws=new WebSocket("ws://yaws.hyber.org/websockets_example_endpoint.yaws");
this._ws.onopen=this._onopen;
this._ws.onmessage=this._onmessage;
this._ws.onclose=this._onclose;
},
the new WebSocket call seems to work, but assignment of the onopen property on the socket results in an error reported on the console:
"Error during WebSocket handshake: 'sec-websocket-origin' header is missing"
though the code keeps running. However, the onclose fails on the last line:
_onclose: function(m) {
this._ws=null;
$('connect').className='';
$('connected').className='hidden';
$('msg').innerHTML='';
}
with "TypeError: Result of expression '$('msg')' [null] is not an object." I see that $ refers to a function, which is getting the msg element off the document (DOM), which appears not to exist. E.g., in the shell:
> document.getElementById("msg")
null
> document.getElementById("msgs")
• <div id="msgs"></div>
I think that's a red herring, though, and can easily be fixed. The real error seems to be around the web sockets handshake, which I know less about. Anyone have any expertise?
This looks relevant, perhaps to the Yaws community:
http://blog.chromium.org/2010/06/websocket-protocol-updated.html
-Fred
------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post received from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Fri Jul 30, 2010 3:04 pm |
|
|
|
Guest
|
|
| Back to top |
|
| Guest |
Posted: Wed Aug 04, 2010 7:25 pm |
|
|
|
Guest
|
On 07/30/2010 05:03 PM, Steve Vinoski wrote:
> Yep, I had passed that link along to Klacke back in June but we
> decided then to wait until there were actually browsers out in the
> wild that supported it before doing anything about it. With Safari
> 5.0.1 we now have browsers out in the wild, so we'll need to fix this
> up.
Mac users ... rise up!
/klacke
------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post received from mailinglist |
|
|
| Back to top |
|
| wuji |
Posted: Thu Aug 30, 2012 7:04 am |
|
|
|
User
Joined: 10 Aug 2012
Posts: 654
|
sk of eradicating it becomes no less daunting than expunging expunging cheap Ralph Lauren expunging false or hurtful information posted about you by others.Your
becomes part of what author Matt Ivester calls "your permanent permanent cheap polo shirts permanent record." His book "lol…OMG!" tells college students and
how to undo (or to avoid making) mistakes they may may cheap polo shirts may later regret—embarrassments, say, that do permanent damage their employment
trying to do damage control, Ivester and others say, should should [h1]cheap replica *beep*[/h1] should consider the following steps: 'Superstitious Fund'
Money in Month TwoFund That Trades on Superstitions Down 9.5 9.5 [h4]replica designer bags for sale[/h4] 9.5 Percent After Two MonthsBy SUSANNA KIMJuly 31, 2012 If
invested in stocks purely based on superstitions like avoiding Friday Friday cheap jordan shoes Friday the 13th or lucky numbers, would you end up |
|
|
| Back to top |
|
|
|
All times are GMT
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|
|