Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

engine.io: deprecated `resource`

  • Loading branch information...
commit c59bb42e8510b8e3d51f4ff3dcb9aa2b367305dd 1 parent 73c772d
@rauchg rauchg authored
Showing with 2 additions and 5 deletions.
  1. +1 −3 README.md
  2. +1 −2  lib/engine.io.js
View
4 README.md
@@ -133,9 +133,7 @@ These are exposed by `require('engine.io')`:
- `http.Server`: server to attach to.
- `Object`: optional, options object
- **Options**
- - `resource` (`String`): name of resource for this server (`default`).
- Setting a resource allows you to initialize multiple engine.io
- endpoints on the same host without them interfering.
+ - `path` (`String`): name of the path to capture (`/engine.io`).
- `policyFile` (`Boolean`): whether to handle policy file requests (`true`)
- `destroyUpgrade` (`Boolean`): destroy unhandled upgrade requests (`true`)
- **See Server options below for additional options you can pass**
View
3  lib/engine.io.js
@@ -96,10 +96,9 @@ exports.attach = function (server, options) {
var engine = new exports.Server(options);
var options = options || {};
var path = (options.path || '/engine.io').replace(/\/$/, '');
- var resource = options.resource || 'default';
// normalize path
- path += '/' + resource + '/';
+ path += '/';
function check (req) {
return path == req.url.substr(0, path.length);
Please sign in to comment.
Something went wrong with that request. Please try again.