This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
gitlord
/
isleward
mirror of
https://gitlab.com/Isleward/isleward.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
203
Wiki
Activity
Browse Source
chore: small cleanup of onConnection function
tags/v0.10.6.3
Shaun
2 years ago
parent
0395594c9c
commit
8147f1b495
2 changed files
with
5 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-0
src/server/security/connections.js
+1
-1
src/server/server/onConnection.js
+ 4
- 0
src/server/security/connections.js
View File
@@ -109,6 +109,10 @@ module.exports = {
cpn[method](msg);
},
routeGlobal: function (msg) {
global[msg.module][msg.method](msg);
},
unzone: function (msg) {
let socket = msg.socket;
let player = this.players.find(p => p.socket.id === socket.id);
+ 1
- 1
src/server/server/onConnection.js
View File
@@ -43,7 +43,7 @@ const onRequest = (socket, msg, callback) => {
if (source)
msg.data.sourceId = source.id;
global[msg.module][msg.method]
(msg);
cons.routeGlobal
(msg);
}
};
Write
Preview
Loading…
Cancel
Save