Merge pull request #32 from Legonzaur/main
hotfix for websocket broadcast
This commit is contained in:
+1
-1
@@ -39,7 +39,7 @@ export default new Promise(async (resolve, reject) => {
|
|||||||
if (!data.payload) return
|
if (!data.payload) return
|
||||||
const payload = JSON.parse(data.payload) as KillTable
|
const payload = JSON.parse(data.payload) as KillTable
|
||||||
wss.clients.forEach(function (client) {
|
wss.clients.forEach(function (client) {
|
||||||
if (client.readyState === WebSocket.OPEN) {
|
if (client.readyState === client.OPEN) {
|
||||||
client.send(
|
client.send(
|
||||||
JSON.stringify({
|
JSON.stringify({
|
||||||
attacker_id: payload.attacker_id,
|
attacker_id: payload.attacker_id,
|
||||||
|
|||||||
Reference in New Issue
Block a user