Skip to content
This repository
Browse code

Rename lib/websockets.js to lib/websocket.js.

  • Loading branch information...
commit 7fd177139c53c68df3a681b356edec39fd077cfa 1 parent 0d612a9
Peter Griess authored
10 README.md
Source Rendered
@@ -7,10 +7,18 @@ v1.2.00.
7 7
8 8 Requires [nodejs](http://nodejs.org) 0.1.98 or later.
9 9
  10 +## Installation
  11 +
  12 +Install this using `npm` as follows
  13 +
  14 + npm install websocket-client
  15 +
  16 +... or just dump `lib/websocket.js` in your `$NODE_PATH`.
  17 +
10 18 ## Usage
11 19
12 20 var sys = require('sys');
13   - var WebSocket = require('websockets').WebSocket;
  21 + var WebSocket = require('websocket').WebSocket;
14 22
15 23 var ws = new WebSocket('ws://localhost:8000/biff', 'borf');
16 24 ws.addListener('data', function(buf) {
2  examples/client-unix.js
... ... @@ -1,5 +1,5 @@
1 1 var sys = require('sys');
2   -var WebSocket = require('websockets').WebSocket;
  2 +var WebSocket = require('websocket').WebSocket;
3 3
4 4 var ws = new WebSocket('ws+unix://' + process.argv[2], 'boffo');
5 5
2  examples/client.js
... ... @@ -1,5 +1,5 @@
1 1 var sys = require('sys');
2   -var WebSocket = require('websockets').WebSocket;
  2 +var WebSocket = require('websocket').WebSocket;
3 3
4 4 var ws = new WebSocket('ws://localhost:8000/biff', 'borf');
5 5 ws.addListener('data', function(buf) {
0  lib/websockets.js → lib/websocket.js
File renamed without changes
2  package.json
... ... @@ -1,6 +1,6 @@
1 1 {
2 2 "name" : "websocket-client",
3   - "version" : "0.9.0",
  3 + "version" : "0.9.1",
4 4 "description" : "An HTML5 Web Sockets client",
5 5 "author" : "Peter Griess <pg@std.in>",
6 6 "engines" : {
2  test/test-basic.js
@@ -2,7 +2,7 @@
2 2 // shut down cleanly.
3 3
4 4 var assert = require('assert');
5   -var WebSocket = require('websockets').WebSocket;
  5 +var WebSocket = require('websocket').WebSocket;
6 6 var WebSocketServer = require('ws').Server;
7 7
8 8 var PORT = 1024 + Math.floor(Math.random() * 4096);
2  test/test-readonly-attrs.js
@@ -2,7 +2,7 @@
2 2
3 3 var assert = require('assert');
4 4 var sys = require('sys');
5   -var WebSocket = require('websockets').WebSocket;
  5 +var WebSocket = require('websocket').WebSocket;
6 6 var WebSocketServer = require('ws').Server;
7 7
8 8 var PORT = 1024 + Math.floor(Math.random() * 4096);
2  test/test-ready-state.js
... ... @@ -1,7 +1,7 @@
1 1 // Verify that readyState transitions are implemented correctly
2 2
3 3 var assert = require('assert');
4   -var WebSocket = require('websockets').WebSocket;
  4 +var WebSocket = require('websocket').WebSocket;
5 5 var WebSocketServer = require('ws').Server;
6 6
7 7 var PORT = 1024 + Math.floor(Math.random() * 4096);
2  test/test-unix-send-fd.js
@@ -5,7 +5,7 @@ var assert = require('assert');
5 5 var fs = require('fs');
6 6 var path = require('path');
7 7 var sys = require('sys');
8   -var WebSocket = require('websockets').WebSocket;
  8 +var WebSocket = require('websocket').WebSocket;
9 9 var WebSocketServer = require('ws').Server;
10 10
11 11 var PATH = path.join(__dirname, 'sock.' + process.pid);
2  test/test-unix-sockets.js
@@ -4,7 +4,7 @@ var assert = require('assert');
4 4 var fs = require('fs');
5 5 var path = require('path');
6 6 var sys = require('sys');
7   -var WebSocket = require('websockets').WebSocket;
  7 +var WebSocket = require('websocket').WebSocket;
8 8 var WebSocketServer = require('ws').Server;
9 9
10 10 var PATH = path.join(__dirname, 'sock.' + process.pid);

0 comments on commit 7fd1771

Please sign in to comment.
Something went wrong with that request. Please try again.