added stub plugins socket file for plugin usage (ping @schamper @frissdiegurke @akhoury @psychobunny @barisusakli)

This commit is contained in:
Julian Lam
2014-05-01 15:23:58 -04:00
parent 970b259e06
commit a5410f7ae7

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;