Permalink
Browse files

engine.io: deprecated `resource`

  • Loading branch information...
1 parent 73c772d commit c59bb42e8510b8e3d51f4ff3dcb9aa2b367305dd @rauchg rauchg committed Dec 16, 2012
Showing with 2 additions and 5 deletions.
  1. +1 −3 README.md
  2. +1 −2 lib/engine.io.js
View
@@ -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
@@ -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);

0 comments on commit c59bb42

Please sign in to comment.