1
0
mirror of https://github.com/hack-chat/main.git synced 2024-03-22 13:20:33 +08:00

Merge pull request #107 from MinusGix/patch-1

Make executehooks public
This commit is contained in:
marzavec 2020-07-22 08:28:54 -05:00 committed by GitHub
commit d9969c8f0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -496,7 +496,7 @@ class MainServer extends WsServer {
* @param {String} type The type of event, typically `in` (incoming) or `out` (outgoing) * @param {String} type The type of event, typically `in` (incoming) or `out` (outgoing)
* @param {ws#WebSocket} socket Either target client or client (depends on `type`) * @param {ws#WebSocket} socket Either target client or client (depends on `type`)
* @param {Object} payload Either incoming data from client or outgoing data (depends on `type`) * @param {Object} payload Either incoming data from client or outgoing data (depends on `type`)
* @private * @public
* @return {Object|Boolean} * @return {Object|Boolean}
*/ */
executeHooks(type, socket, payload) { executeHooks(type, socket, payload) {