node.remysharp.com:8001
Note that the above websocket server does not echo back the chat. You can use Google Chrome and connect to the Websocket server at:
http://html5demos.com/web-socket
Edited by David Wisti, 30 November 2011 - 03:44 PM.
Posted 30 November 2011 - 03:42 PM
Edited by David Wisti, 30 November 2011 - 03:44 PM.
Posted 14 December 2011 - 02:49 AM

POPULAR
Posted 14 December 2011 - 04:16 AM

POPULAR
I've really got the web-socket bug now
http://screencast.com/t/TqFOatnbfmC
(frame rate is due to Jing, not the apps)
Posted 14 December 2011 - 06:44 AM
Yup. This is what she looks like, face-on.
Nice mirror.
Posted 14 December 2011 - 07:14 AM
Posted 15 December 2011 - 08:46 PM
Posted 19 December 2011 - 04:48 PM
Posted 19 December 2011 - 06:21 PM
Posted 19 December 2011 - 06:38 PM
Posted 20 December 2011 - 12:39 AM
Not sure what you mean by "fixed code". But I won't be releasing it until the api is completed and tested (it's a bit of a mess at the mo'). I'm currently up to supporting Hybi 17, 10,8, 6 and 00 (looking at Hixie and auto negotiation now) and have a prototype library for exporting events and commands (i.e. for remote monitoring), but still need to figure out the reciprocal methods. And, (this'll surprise a few people) some of it is LVOOP.ShaunR, Will you be posting your fixed code
Posted 20 December 2011 - 01:56 AM

POPULAR
No way, say it's ain't so. In other news, the sky is still blue. Well on Earth anyways, most of the time...And, (this'll surprise a few people) some of it is LVOOP.
Posted 20 December 2011 - 02:05 AM
Yup. It's not as clean as I usually like (can't use polymorphic VI's with dynamic terminals) but I needed to maintain state on a per-connection basis. So this is one of the rare instances where it is the better choice. It won't happen again, I promiseNo way, say it's ain't so. In other news, the sky is still blue. Well on Earth anyways, most of the time...
I'm still pumped about this topic. Granted I got to spend zero time on implementing something like this this year (still very disappointed about that), but 2012 will be different. Yeah, that's it, different. What can I say, there's still a bit of foolish youthful optimism in me.
Edited by ShaunR, 20 December 2011 - 02:12 AM.
Posted 20 December 2011 - 04:35 PM
I'm currently up to supporting Hybi 17, 10,8, 6 and 00 (looking at Hixie and auto negotiation now)
Posted 20 December 2011 - 06:16 PM
Because (for example, currently) Chrome uses Hibi 10, Firefox uses Hybi 9, I.E 10 (will use) Hybi 10, IE.9 (with HTML5 Labs plugin) supports Hybi 6 and Safari (different flavours) supports Hixie 75,76 or Hybi 00.
I'm curious, why are you supporting older versions of the protocol? What is auto negotiation in Websockets?
Edited by ShaunR, 20 December 2011 - 07:10 PM.
Posted 20 January 2012 - 11:13 PM

POPULAR
WPLavaG.zip 529.8K
141 downloadsPosted 22 January 2012 - 01:08 PM
I'm guessing this comment is because you get a x-server script error when using chrome to access a "file://" URI (i.e a local file rather than an "http://" URI). You can override this limitation by launching chrome with the command-line switch "-allow-file-access-from-files". You should then be able to connect after opening an html file on the local file system without an error.top.wpSend = wpSend; //for sending webpanel msg from HTML if SVG is embedded. Firefox 4 only (no Chrome)
Posted 22 January 2012 - 01:36 PM
...because you get a x-server script error when using chrome to access a "file://" URI (i.e a local file rather than an "http://" URI). You can override this limitation by launching chrome with the command-line switch "-allow-file-access-from-files". You should then be able to connect after opening an html file on the local file system without an error.
Posted 22 January 2012 - 01:53 PM
No-eyed-deer. This is purely a mismatch in the URI which chrome resricts by default (firefox, Safari and explorer don't exhibit this behaviour). I have only had this problem with websockets since I have never had the need to send cookies from labview. So I guess if your cookie issue works in the other browsers but not in chrome, then maybe it will solve it- you tell me
Using a web-server in the past has fixed my XSS issues (among other things).
I am interested to try out the switch you have posted i.e. does it allow cookies to work in chrome?
Posted 22 January 2012 - 07:44 PM
I noticed that you had this in your JS
I'm guessing this comment is because you get a x-server script error when using chrome to access a "file://" URI (i.e a local file rather than an "http://" URI). You can override this limitation by launching chrome with the command-line switch "-allow-file-access-from-files". You should then be able to connect after opening an html file on the local file system without an error.