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') {