You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
409 B
JavaScript

'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 = require.main.require('./src/socket.io/plugins');
SocketPlugins.myPlugin = {};
SocketPlugins.myPlugin.myMethod = function() { ... };
Be a good lad and namespace your methods.
*/
module.exports = SocketPlugins;