pass socket arg

This commit is contained in:
srgooglo 2022-02-21 10:22:01 +01:00
parent ab2be942c6
commit 744f710903

View File

@ -122,10 +122,10 @@ class Server {
handleWSClientConnection = async (socket) => {
socket.res = (...args) => {
socket.emit("response", ...args)
socket.emit("response", socket, ...args)
}
socket.err = (...args) => {
socket.emit("responseError", ...args)
socket.emit("responseError", socket, ...args)
}
if (typeof this.params.onWSClientConnection === "function") {