Merge branch 'master' into v0.4.x

This commit is contained in:
Julian Lam
2014-05-01 15:24:30 -04:00

16
src/socket.io/plugins.js Normal file
View File

@@ -0,0 +1,16 @@
'use strict';
var SocketPlugins = {};
/*
This file is provided exclusively so that plugins can require it and add their own socket listeners.
How? From your plugin:
var SocketPlugins = module.parent.require('./socket.io/plugins');
SocketPlugins.myPlugin.myMethod = function() { ... };
Be a good lad and namespace your methods.
*/
module.exports = SocketPlugins;