mirror of
https://github.com/yawaflua/LuckyDiamond.git
synced 2025-12-10 12:19:31 +02:00
update socket on jackpot
This commit is contained in:
@@ -28,11 +28,14 @@ export function ConnectToChat() {
|
||||
eventBus.emit('dataChat', event.data);
|
||||
console.log('CHAT')
|
||||
}
|
||||
else {
|
||||
|
||||
if (data.MessageType == "CrashGameState") {
|
||||
eventBus.emit('crash', event.data)
|
||||
}
|
||||
|
||||
// console.log('Message from Server:', event.data);
|
||||
if (Array.isArray(data.CurrentGame.PlayerList)) {
|
||||
eventBus.emit('jackpotGameTik', event.data)
|
||||
}
|
||||
};
|
||||
|
||||
webSocket.onclose = function () {
|
||||
|
||||
Reference in New Issue
Block a user