Skip to content

Node.js based forum software built for the modern web

fixed bad example code

Julian Lam90269ad9b86b
diff --git a/src/socket.io/plugins.js b/src/socket.io/plugins.js
index 7fbaabc6b2..52dfeecc69 100644
--- a/src/socket.io/plugins.js
+++ b/src/socket.io/plugins.js
@@ -8,6 +8,7 @@ var SocketPlugins = {};
How? From your plugin:
var SocketPlugins = module.parent.require('./socket.io/plugins');
+ SocketPlugins.myPlugin = {};
SocketPlugins.myPlugin.myMethod = function() { ... };
Be a good lad and namespace your methods.