Code coverage report for lib/socket.io/index.js

Statements: 100% (9 / 9)      Branches: 100% (0 / 0)      Functions: 100% (1 / 1)      Lines: 100% (9 / 9)      Ignored: none     

All files » lib/socket.io/ » index.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26                        1 1   1 1 1 1   1   1 6    
/*!
 * koa.io - lib/socket.io/index.js
 * Copyright(c) 2014 dead_horse <dead_horse@qq.com>
 * MIT Licensed
 */
 
'use strict';
 
/**
 * Module dependencies.
 */
 
var Namespace = require('socket.io/lib/namespace');
var ExtentNamespace = require('./namespace');
 
Namespace.prototype.router = ExtentNamespace.router;
Namespace.prototype.route = ExtentNamespace.route;
Namespace.prototype.add = ExtentNamespace.add;
Namespace.prototype.use = ExtentNamespace.use;
 
var Server = module.exports = require('socket.io');
 
Server.prototype.route = function() {
  return this.sockets.route.apply(this.sockets, arguments);
};