We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 608396d commit 0c65f6cCopy full SHA for 0c65f6c
LiveTable/server.js
@@ -22,15 +22,15 @@ const ws = new Websocket({
22
23
const clients = [];
24
25
-ws.on('request', req => {
+ws.on('request', (req) => {
26
const connection = req.accept('', req.origin);
27
clients.push(connection);
28
console.log('Connected ' + connection.remoteAddress);
29
- connection.on('message', message => {
+ connection.on('message', (message) => {
30
const dataName = message.type + 'Data';
31
const data = message[dataName];
32
console.log('Received: ' + data);
33
- clients.forEach(client => {
+ clients.forEach((client) => {
34
if (connection !== client) {
35
client.send(data);
36
}
0 commit comments