CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Tue, 05 Aug 2025 01:55:44 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20100406080445
location: https://web.archive.org/web/20100406080445/https://github.com/gimite/web-socket-js
server-timing: captures_list;dur=0.569432, exclusion.robots;dur=0.018973, exclusion.robots.policy;dur=0.008938, esindex;dur=0.009237, cdx.remote;dur=51.224344, LoadShardBlock;dur=199.294099, PetaboxLoader3.datanode;dur=67.893239, PetaboxLoader3.resolve;dur=41.726687
x-app-server: wwwb-app212
x-ts: 302
x-tr: 304
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: wb-p-SERVER=wwwb-app212; path=/
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Tue, 05 Aug 2025 01:55:45 GMT
content-type: text/html; charset=utf-8
x-archive-orig-server: nginx/0.7.61
x-archive-orig-date: Tue, 06 Apr 2010 08:04:45 GMT
x-archive-orig-connection: close
x-archive-orig-status: 200 OK
x-archive-orig-etag: "332eba229fe173a6c1e16a36efbb453a"
x-archive-orig-x-runtime: 147ms
x-archive-orig-content-length: 26494
x-archive-orig-cache-control: private, max-age=0, must-revalidate
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Tue, 06 Apr 2010 08:04:45 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Thu, 26 Nov 2009 02:48:25 GMT", ; rel="prev memento"; datetime="Thu, 18 Mar 2010 02:15:22 GMT", ; rel="memento"; datetime="Tue, 06 Apr 2010 08:04:45 GMT", ; rel="next memento"; datetime="Sat, 24 Apr 2010 17:43:17 GMT", ; rel="last memento"; datetime="Sat, 26 Jul 2025 08:56:47 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 52_15_20100406065756_crawl101-c/52_15_20100406080435_crawl101.arc.gz
server-timing: captures_list;dur=0.475236, exclusion.robots;dur=0.017277, exclusion.robots.policy;dur=0.007923, esindex;dur=0.010059, cdx.remote;dur=15.739465, LoadShardBlock;dur=158.756535, PetaboxLoader3.datanode;dur=81.260595, PetaboxLoader3.resolve;dur=175.277709, load_resource;dur=110.722761
x-app-server: wwwb-app212
x-ts: 200
x-tr: 369
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
gimite's web-socket-js at master - GitHub
gimite / web-socket-js
- Source
- Commits
- Network (12)
- Issues (1)
- Downloads (0)
- Wiki (1)
- Graphs
-
Branch:
master
click here to add a description
click here to add a homepage
name | age | message | |
---|---|---|---|
![]() |
.gitignore | Sun Aug 09 22:58:40 -0700 2009 | Initial version. Checked only with Chrome. [gimite] |
![]() |
FABridge.js | Sun Aug 09 22:58:40 -0700 2009 | Initial version. Checked only with Chrome. [gimite] |
![]() |
README.txt | Sun Jan 24 02:18:37 -0800 2010 | Referring to latest spec. [gimite] |
![]() |
WebSocketMain.swf | Mon Mar 08 21:03:28 -0800 2010 | Updating Flash binary because previous version ... [gimite] |
![]() |
flash-src/ | Sun Feb 28 17:06:07 -0800 2010 | Fix critical typo (replacing escape with encode... [Marcus Cavanaugh] |
![]() |
sample.html | Sat Sep 05 02:58:46 -0700 2009 | Following default port change in specification.... [gimite] |
![]() |
swfobject.js | Sun Feb 28 17:12:32 -0800 2010 | Undo the hasty fix to swfobject by mistake. [Marcus Cavanaugh] |
![]() |
web_socket.js | Sun Feb 28 17:06:07 -0800 2010 | Fix critical typo (replacing escape with encode... [Marcus Cavanaugh] |
README.txt
* How to try Assuming you have Web server (e.g. Apache) running at https://example.com/ . - Download web_socket.rb from: https://github.com/gimite/web-socket-ruby/tree/master - Run sample Web Socket server (echo server) in example.com with: (#1) $ ruby web-socket-ruby/samples/echo_server.rb example.com 10081 - If your server already provides socket policy file at port 843, modify the file to allow access to port 10081. Otherwise you can skip this step. See below for details. - Publish the web-socket-js directory with your Web server (e.g. put it in ~/public_html). - Change ws://localhost:10081 to ws://example.com:10081 in sample.html. - Open sample.html in your browser. - After "onopen" is shown, input something, click [Send] and confirm echo back. #1: First argument of echo_server.rb means that it accepts Web Socket connection from HTML pages in example.com. * How to debug If sample.html doesn't work, check these: - It doesn't work when you open sample.html as local file i.e. file:///.../sample.html. Open it via Web server. - Make sure port 10081 is not blocked by your server/client's firewall. - Use Developer Tools (Chrome/Safari) or Firebug (Firefox) to see if console.log outputs any errors. - Install debugger version of Flash Player available here to see Flash errors: https://www.adobe.com/support/flashplayer/downloads.html * Supported environment I confirmed it works on Chrome 3, Firefox 3.5 and IE 8. It may not work in other browsers. It requires Flash Player 9 or later (probably). On Chrome 4 Dev Channel, it just uses native Web Socket implementation. * Flash socket policy file This implementation uses Flash's socket, which means that your server must provide Flash socket policy file to declare the server accepts connections from Flash. If you use web-socket-ruby available at https://github.com/gimite/web-socket-ruby/tree/master , you don't need anything special, because web-socket-ruby handles Flash socket policy file request. But if you already provide socket policy file at port 843, you need to modify the file to allow access to Web Socket port, because it precedes what web-socket-ruby provides. If you use other Web Socket server implementation, you need to provide socket policy file yourself. See https://www.lightsphere.com/dev/articles/flash_socket_policy.html for details and sample script to run socket policy file server. Actually, it's still better to provide socket policy file at port 843 even if you use web-socket-ruby. Flash always try to connect to port 843 first, so providing the file at port 843 makes startup faster. * Cookie considerations Cookie is sent if Web Socket host is the same as the origin of JavaScript. Otherwise it is not sent, because I don't know way to send right Cookie (which is Cookie of the host of Web Socket, I heard). Note that it's technically possible that client sends arbitrary string as Cookie and any other headers (by modifying this library for example) once you place Flash socket policy file in your server. So don't trust Cookie and other headers if you allow connection from untrusted origin. * Proxy considerations The WebSocket spec (https://tools.ietf.org/html/draft-hixie-thewebsocketprotocol) specifies instructions for User Agents to support proxied connections by implementing the HTTP CONNECT method. The AS3 Socket class doesn't implement this mechanism, which renders it useless for the scenarios where the user trying to open a socket is behind a proxy. The class RFC2817Socket (by Christian Cantrell) effectively lets us implement this, as long as the proxy settings are known and provided by the interface that instantiates the WebSocket. As such, if you want to support proxied conncetions, you'll have to supply this information to the WebSocket constructor when Flash is being used. One way to go about it would be to ask the user for proxy settings information if the initial connection fails. * How to build WebSocketMain.swf Install Flex SDK. $ cd flash-src $ mxmlc -output=../WebSocketMain.swf WebSocketMain.as * License New BSD License.