From b9e6adf3492e7e32a011a592533a8dfa8f1a9009 Mon Sep 17 00:00:00 2001 From: choelzl Date: Wed, 23 Feb 2022 20:50:57 +0100 Subject: [PATCH] WIP --- web/emotewall/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/emotewall/index.js b/web/emotewall/index.js index ef21ff5..9ae3573 100644 --- a/web/emotewall/index.js +++ b/web/emotewall/index.js @@ -349,7 +349,7 @@ $(async function () { } } - const handleSocketMessage = (e)=>{ + const handleSocketMessage = async (e)=>{ try { let rawMessage = e.data, message = JSON.parse(rawMessage); @@ -359,7 +359,7 @@ $(async function () { return; console.log(message.eventType, message.data) - let emote = handleEmoteData(message.data) + let emote = await handleEmoteData(message.data) if(message.eventType == 'bounce') { createParticule(BounceP, emote, {}, {}) }else if(message.eventType == 'rain') {