Skip to content

Commit a3e02a2

Browse files
committed
Add some minor comments
1 parent 0e5ee2e commit a3e02a2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

apps/signalling-service/server.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ const pingTimeout = 30000;
1414
const port = process.env.PORT || 4444;
1515
const wss = new WebSocketServer({ noServer: true });
1616

17+
// Initialise the signalling server for collaboration editor
1718
const server = http.createServer((request, response) => {
1819
response.writeHead(200, {
1920
"Content-Type": "text/plain",
@@ -107,6 +108,7 @@ const onconnection = (conn) => {
107108
break;
108109
case "ping":
109110
send(conn, { type: "pong" });
111+
break;
110112
}
111113
}
112114
});

0 commit comments

Comments
 (0)