Skip to content

Commit

Permalink
index: rename adaptor to adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
rauchg committed Dec 24, 2012
1 parent ab5a226 commit d411dec
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ var http = require('http')
, engine = require('engine.io')
, Client = require('./client')
, Namespace = require('./namespace')
, Adaptor = require('./adaptor')
, Adapter = require('./adapter')
, debug = require('debug')('socket.io:server');

/**
Expand Down Expand Up @@ -43,10 +43,10 @@ function Server(srv, opts){
}
opts = opts || {};
this.nsps = {};
this.sockets = this.of('/');
this.path(opts.path || '/socket.io');
this.static(false !== opts.static);
this.adaptor(opts.adaptor || new Adaptor);
this.adapter(opts.adapter || Adapter);
this.sockets = this.of('/');
if (srv) this.attach(srv, opts);
}

Expand Down Expand Up @@ -79,16 +79,16 @@ Server.prototype.path = function(v){
};

/**
* Sets the adaptor for rooms.
* Sets the edaptor for rooms.
*
* @param {Adaptor} pathname
* @return {Server|Adaptor} self when setting or value when getting
* @param {Adapter} pathname
* @return {Server|Adapter} self when setting or value when getting
* @api public
*/

Server.prototype.adaptor = function(v){
if (!arguments.length) return this._adaptor;
this._adaptor = v;
Server.prototype.adapter = function(v){
if (!arguments.length) return this._adapter;
this._adapter = v;
return this;
};

Expand Down

0 comments on commit d411dec

Please sign in to comment.