Browse Source

lint

master
idlewinn 5 years ago
parent
commit
c39832dc2c
1 changed files with 9 additions and 4 deletions
  1. 9
    4
      src/index.ts

+ 9
- 4
src/index.ts View File

48
     }
48
     }
49
   );
49
   );
50
 
50
 
51
-  socket.on("server-volatile-broadcast", (roomID: string, encryptedData: ArrayBuffer, iv: Uint8Array) => {
52
-    console.log(`${socket.id} sends volatile update to ${roomID}`);
53
-    socket.volatile.broadcast.to(roomID).emit("client-broadcast", encryptedData, iv);
54
-  });
51
+  socket.on(
52
+    "server-volatile-broadcast",
53
+    (roomID: string, encryptedData: ArrayBuffer, iv: Uint8Array) => {
54
+      console.log(`${socket.id} sends volatile update to ${roomID}`);
55
+      socket.volatile.broadcast
56
+        .to(roomID)
57
+        .emit("client-broadcast", encryptedData, iv);
58
+    }
59
+  );
55
 
60
 
56
   socket.on("disconnecting", () => {
61
   socket.on("disconnecting", () => {
57
     const rooms = io.sockets.adapter.rooms;
62
     const rooms = io.sockets.adapter.rooms;

Loading…
Cancel
Save