websocket.io
Advanced tools
Comparing version 0.1.5 to 0.1.6
0.1.6 / 2012-02-27 | ||
================== | ||
* Fix hybi-16 on node 0.4 | ||
0.1.5 / 2012-02-10 | ||
@@ -3,0 +8,0 @@ ================== |
@@ -202,8 +202,8 @@ | ||
case 126: | ||
outputBuffer.writeUInt16BE(dataLength, 2); | ||
util.writeUInt16BE.call(outputBuffer, dataLength, 2); | ||
break; | ||
case 127: | ||
outputBuffer.writeUInt32BE(0, 2); | ||
outputBuffer.writeUInt32BE(dataLength, 6); | ||
util.writeUInt32BE.call(outputBuffer, 0, 2); | ||
util.writeUInt32BE.call(outputBuffer, dataLength, 6); | ||
} | ||
@@ -210,0 +210,0 @@ |
@@ -205,8 +205,8 @@ | ||
case 126: | ||
outputBuffer.writeUInt16BE(dataLength, 2); | ||
util.writeUInt16BE.call(outputBuffer, dataLength, 2); | ||
break; | ||
case 127: | ||
outputBuffer.writeUInt32BE(0, 2); | ||
outputBuffer.writeUInt32BE(dataLength, 6); | ||
util.writeUInt32BE.call(outputBuffer, 0, 2); | ||
util.writeUInt32BE.call(outputBuffer, dataLength, 6); | ||
} | ||
@@ -213,0 +213,0 @@ |
@@ -51,1 +51,26 @@ | ||
/** | ||
* Writes value to the buffer at the specified offset with specified endian format. | ||
* Note, value must be a valid unsigned 16 bit integer. | ||
* | ||
* @api public | ||
*/ | ||
exports.writeUInt16BE = function (value, offset) { | ||
this[offset] = (value & 0xff00)>>8; | ||
this[offset+1] = value & 0xff; | ||
} | ||
/** | ||
* Writes value to the buffer at the specified offset with specified endian format. | ||
* Note, value must be a valid unsigned 32 bit integer. | ||
* | ||
* @api public | ||
*/ | ||
exports.writeUInt32BE = function (value, offset) { | ||
this[offset] = (value & 0xff000000)>>24; | ||
this[offset+1] = (value & 0xff0000)>>16; | ||
this[offset+2] = (value & 0xff00)>>8; | ||
this[offset+3] = value & 0xff; | ||
} |
@@ -15,3 +15,3 @@ | ||
exports.version = '0.1.5'; | ||
exports.version = '0.1.6'; | ||
@@ -18,0 +18,0 @@ /** |
{ | ||
"name": "websocket.io" | ||
, "description": "Socket.IO websocket server" | ||
, "version": "0.1.5" | ||
, "version": "0.1.6" | ||
, "contributors": [ | ||
@@ -6,0 +6,0 @@ { "name": "Guillermo Rauch", "email": "rauchg@gmail.com" } |
WebSocket.IO | ||
============ | ||
[![Build Status](https://secure.travis-ci.org/learnboost/websocket.io.png)](http://travis-ci.org/learnboost/websocket.io) | ||
WebSocket.IO is an abstraction of the websocket server previously used by Socket.IO. | ||
@@ -5,0 +7,0 @@ It has the broadest support for websocket protocol/specifications and an API that |
Sorry, the diff of this file is not supported yet
66344
27
2091
278
7