Skip to content
This repository has been archived by the owner on Mar 27, 2018. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Preparing for node-websocket-protocol / v2.0.00.
DO NOT USE, WAIT FOR v2.0.00, THE SERVER WILL NOT RUN 
WITH THIS CODE AT PRESENT.

Changes:
    - added dependency on "websocket-protocol"
    - added node_modules to .gitignore
    - removed old files that weren't really needed / in use.
    - renamed internal variables in lib/ws/server.js
    - added exports for Connection and Manager to lib/ws/server.js
    - removed old protocol code in lib/ws/connection.js
    - changed internal code for Connections (refactor)
    - changed API for the Connection "message" event, see note#1

Notes:
    1. The API for the Connection "message" event is now:
            connection.on("message", function(type, data) {
              // ...
            });
       
       This change is in order to support the receiving of Binary 
       WebSocket frames. The 'type' argument indicates whether the
       message is a UTF8 string or whether the message is a binary
       message. This in turn changes the data type of the 'data'
       argument between being a String or a Buffer.
  • Loading branch information
miksago committed Aug 16, 2011
1 parent 29ba5f0 commit 8221795
Show file tree
Hide file tree
Showing 9 changed files with 236 additions and 604 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1 +1,2 @@
*.pyc
node_modules
4 changes: 2 additions & 2 deletions lib/_events.js
@@ -1,5 +1,5 @@
var util = require('./_util'),
events = require('events');
var util = require(process.binding('natives').util ? 'util' : 'sys');
var events = require('events');

EventEmitter = exports.EventEmitter = function() {
events.EventEmitter.call(this);
Expand Down
1 change: 0 additions & 1 deletion lib/_util.js

This file was deleted.

0 comments on commit 8221795

Please sign in to comment.