Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Just a little linting.

  • Loading branch information...
commit 2a9c991376c5405d22cc44809e341472e8cb8ac9 1 parent 4830499
@miksago authored
Showing with 6 additions and 5 deletions.
  1. +6 −5 lib/ws/connection.js
View
11 lib/ws/connection.js
@@ -14,8 +14,9 @@ var _events = require('../_events');
var Mixin = require('../lang/mixin');
var CLOSE_FRAME = new Buffer(2);
- CLOSE_FRAME[0] = 0xFF;
- CLOSE_FRAME[1] = 0x00;
+
+CLOSE_FRAME[0] = 0xFF;
+CLOSE_FRAME[1] = 0x00;
/*-----------------------------------------------
The Connection:
@@ -287,12 +288,12 @@ Connection.prototype.inspect = function() {
Connection.prototype.write = function(data) {
if (this._state === 4) {
var byteLen = Buffer.byteLength(data, 'utf8'),
- bytes = new Buffer(byteLen+2);
-
+ bytes = new Buffer(byteLen + 2);
+
bytes[0] = 0x00;
bytes.write(data, 1, 'utf8');
bytes[byteLen + 1] = 0xFF;
-
+
return write(this, bytes);
} else {
debug(this.id, '\033[31mCould not send.');

0 comments on commit 2a9c991

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