aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2020-05-15 16:18:00 -0700
committerAdam Soltys <[email protected]>2020-05-15 16:18:00 -0700
commit0414346c73fca91f20946c6b8a4416b192ffe5e9 (patch)
tree4ec403349ea53b15c574909bc73f287735c7aeb7
parent8958a5e3779c0980c079055a46177dfdbd783c7f (diff)
downloadcoinos-server-0414346c73fca91f20946c6b8a4416b192ffe5e9.tar.gz
coinos-server-0414346c73fca91f20946c6b8a4416b192ffe5e9.zip
lint
-rw-r--r--lib/sockets.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/sockets.js b/lib/sockets.js
index c7b58452..c630c1fd 100644
--- a/lib/sockets.js
+++ b/lib/sockets.js
@@ -15,7 +15,7 @@ emit = (username, type, data) => {
for (id in sockets[username]) {
const ws = sockets[username][id];
ws.send(JSON.stringify({ type, data }));
- }
+ }
};
broadcast = (type, data) => {
@@ -23,9 +23,9 @@ broadcast = (type, data) => {
for (const id in sockets[username]) {
const ws = sockets[username][id];
ws.send(JSON.stringify({ type, data }));
- }
- };
-}
+ }
+ }
+};
server.on("upgrade", function (request, socket, head) {
wss.handleUpgrade(request, socket, head, function (ws) {