CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Mon, 01 Sep 2025 02:24:49 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20100424223951
location: https://web.archive.org/web/20100424223951/https://github.com/creationix/websocket
server-timing: captures_list;dur=0.772722, exclusion.robots;dur=0.024915, exclusion.robots.policy;dur=0.009708, esindex;dur=0.012454, cdx.remote;dur=18.292740, LoadShardBlock;dur=175.296199, PetaboxLoader3.datanode;dur=102.848567, PetaboxLoader3.resolve;dur=38.102847
x-app-server: wwwb-app216
x-ts: 302
x-tr: 280
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: wb-p-SERVER=wwwb-app216; 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: Mon, 01 Sep 2025 02:24:50 GMT
content-type: text/html; charset=utf-8
x-archive-orig-server: nginx/0.7.61
x-archive-orig-date: Sat, 24 Apr 2010 22:39:51 GMT
x-archive-orig-connection: close
x-archive-orig-status: 200 OK
x-archive-orig-etag: "6e7a8f47e7adf0589d255d2dbd54f8d2"
x-archive-orig-x-runtime: 110ms
x-archive-orig-content-length: 19448
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: Sat, 24 Apr 2010 22:39:51 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Sat, 24 Apr 2010 22:39:51 GMT", ; rel="memento"; datetime="Sat, 24 Apr 2010 22:39:51 GMT", ; rel="next memento"; datetime="Sun, 10 Jun 2018 23:36:38 GMT", ; rel="last memento"; datetime="Fri, 18 Dec 2020 06:08: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_20100424193004_crawl103-c/52_15_20100424223934_crawl101.arc.gz
server-timing: captures_list;dur=0.490967, exclusion.robots;dur=0.017006, exclusion.robots.policy;dur=0.007436, esindex;dur=0.009358, cdx.remote;dur=6.108411, LoadShardBlock;dur=238.825519, PetaboxLoader3.datanode;dur=136.131421, PetaboxLoader3.resolve;dur=195.167460, load_resource;dur=169.029422
x-app-server: wwwb-app216
x-ts: 200
x-tr: 470
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
creationix's websocket at master - GitHub
creationix / websocket
- Source
- Commits
- Network (3)
- Issues (0)
- Downloads (2)
- Wiki (1)
- Graphs
-
Branch:
master
click here to add a description
click here to add a homepage
Sending Request…
A simple drop-in replacement for node's TCP server that supports the WebSocket protocol. — Read more
name | age | message | |
---|---|---|---|
![]() |
README.markdown | Thu Apr 15 08:56:02 -0700 2010 | Update the readme, it was just plain wrong. [creationix] |
![]() |
lib/ | Thu Apr 15 12:09:24 -0700 2010 | Proxy more methods to socket, and some properti... [fictorial] |
![]() |
sample/ | Thu Apr 08 12:52:51 -0700 2010 | Update to reflect changes in node v0.1.90. [creationix] |
README.markdown
WebSocket Server
websocket
is a simple wrapper around tcp.createServer that abstracts away the details of a browser WebSocket. It's designed to be a drop in replacement for a regular TCP server, but be accessible from a browser that supports WebSocket.
var websocket = require("websocket");
var server = websocket.createServer(function (socket) {
socket.write("hello\r\n");
socket.addListener("data", function (data) {
socket.write(data);
});
socket.addListener("end", function () {
socket.write("goodbye\r\n");
socket.end();
});
});
server.listen(7000, "localhost");
This implementation is quick and dirty and skips over a lot of details. For example it doesn't validate any of the same origin stuff.
For a more fleshed out implementation, but with a larger api, please see https://github.com/guille/node.websocket.js/