Skip to content

Commit

Permalink
feat: add clientId to init message
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisguttandin committed Dec 8, 2024
1 parent d44cb77 commit 53ced43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ server.on('connection', (connection) => {
const sendMessage = (message: object) => connection.send(JSON.stringify(message));

activeConnections.set(id, sendMessage);
sendMessage({ events: [], origin, type: 'init' });
sendMessage({ client: { id }, events: [], origin, type: 'init' });

origin += 1;

Expand Down

0 comments on commit 53ced43

Please sign in to comment.