mirror of
https://github.com/ragestudio/linebridge.git
synced 2025-06-09 18:44:17 +00:00
pass socket arg
This commit is contained in:
parent
ab2be942c6
commit
744f710903
@ -122,10 +122,10 @@ class Server {
|
|||||||
|
|
||||||
handleWSClientConnection = async (socket) => {
|
handleWSClientConnection = async (socket) => {
|
||||||
socket.res = (...args) => {
|
socket.res = (...args) => {
|
||||||
socket.emit("response", ...args)
|
socket.emit("response", socket, ...args)
|
||||||
}
|
}
|
||||||
socket.err = (...args) => {
|
socket.err = (...args) => {
|
||||||
socket.emit("responseError", ...args)
|
socket.emit("responseError", socket, ...args)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (typeof this.params.onWSClientConnection === "function") {
|
if (typeof this.params.onWSClientConnection === "function") {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user