This repository has been archived by the owner on Mar 27, 2018. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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