Socket
Socket
Sign inDemoInstall

engine.io

Package Overview
Dependencies
75
Maintainers
1
Versions
147
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.0 to 0.2.1

9

History.md
0.2.1 / 2012-08-13
==================
* polling-xhr: skip Keep-Alive when it's implied [EugenDueck]
* polling-jsonp: skip Keep-Alive when it's implied [EugenDueck]
* README: added plugins list with engine.io-conflation
* socket: added flush/drain events (fixes #56)
* server: avoid passing websocket to non-websocket transports (fixes #24)
0.2.0 / 2012-08-06

@@ -3,0 +12,0 @@ ==================

11

lib/transports/polling-jsonp.js

@@ -7,3 +7,3 @@

var Polling = require('./polling')
, qs = require('querystring')
, qs = require('querystring');

@@ -60,8 +60,13 @@ /**

// explicit UTF-8 is required for pages not served under utf
var headers = {
'Content-Type': 'text/javascript; charset=UTF-8'
, 'Content-Length': Buffer.byteLength(data)
, 'Connection': 'Keep-Alive'
};
// Keep-Alive is the default in HTTP 1.1
if ('1.1' != this.req.httpVersion) {
headers.Connection = 'Keep-Alive';
}
this.res.writeHead(200, this.headers(this.req, headers));

@@ -87,4 +92,4 @@ this.res.end(data);

this.emit('headers', headers)
this.emit('headers', headers);
return headers;
};

@@ -7,3 +7,3 @@

var Polling = require('./polling')
, Transport = require('../transport')
, Transport = require('../transport');

@@ -39,8 +39,13 @@ /**

XHR.prototype.doWrite = function (data) {
// explicit UTF-8 is required for pages not served under utf
var headers = {
'Content-Type': 'text/plain; charset=UTF-8'
, 'Content-Length': Buffer.byteLength(data)
, 'Connection': 'Keep-Alive'
};
// Keep-Alive is the default in HTTP 1.1
if ('1.1' != this.req.httpVersion) {
headers.Connection = 'Keep-Alive';
}
this.res.writeHead(200, this.headers(this.req, headers));

@@ -68,4 +73,4 @@ this.res.end(data);

this.emit('headers', headers)
this.emit('headers', headers);
return headers;
};
{
"name": "engine.io"
, "version": "0.2.0"
, "version": "0.2.1"
, "description": "The realtime engine behind Socket.IO. Provides the foundation of a bidirectional connection between client and server"

@@ -8,3 +8,3 @@ , "main": "./lib/engine.io"

"debug": "0.6.0"
, "engine.io-client": "0.2.0"
, "engine.io-client": "0.2.1"
, "ws": "~0.4.21"

@@ -11,0 +11,0 @@ }

@@ -274,3 +274,3 @@ # Engine.IO: the realtime engine

- [engine.io-conflation](https://github.com/EugenDueck/engine.io-conflation)
- [engine.io-conflation](https://github.com/EugenDueck/engine.io-conflation): Makes **conflation and aggregation** of messages straightforward.

@@ -277,0 +277,0 @@ ## Support

var server = require('http').createServer(function(req, res){
res.writeHead(500);
res.end('Error');
}).listen(3000, function(){
console.log('listening');
var engine = require('../engine.io')
, server = engine.listen(3000)
, eio = require('./')
, socket = new eio.Socket({host: 'localhost', port: 3000});
server.on('connection', function (socket) {
socket.send('string');
});
var engine = require('./').attach(server);
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc