Skip to content

Node.js based forum software built for the modern web

429 B
Raw Blame
'use strict';

const SocketPlugins = {};

/*
	This file is provided exclusively so that plugins can require it and add their own socket listeners.

	How? From your plugin:

		const SocketPlugins = nodebb.require('./src/socket.io/plugins');
		SocketPlugins.myPlugin = {};
		SocketPlugins.myPlugin.myMethod = function(socket, data, callback) { ... };

	Be a good lad and namespace your methods.
*/

module.exports = SocketPlugins;