Skip to content

Commit

Permalink
err handle
Browse files Browse the repository at this point in the history
  • Loading branch information
dispherical committed Oct 20, 2024
1 parent be099ab commit e2c6ba1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,12 @@ var activeConnections = [];
});
function broadcastMessage(message) {
activeConnections.forEach((ws) => {
ws.send(JSON.stringify(message));
try {
ws.send(JSON.stringify(message));
}
catch(e){

}
});
}
// This deletes and sends a new message to bypass the 10 day editing limit and to show up on the user's unread channel list
Expand Down

0 comments on commit e2c6ba1

Please sign in to comment.