WIP
This commit is contained in:
parent
cd9f337423
commit
b9e6adf349
@ -349,7 +349,7 @@ $(async function () {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const handleSocketMessage = (e)=>{
|
const handleSocketMessage = async (e)=>{
|
||||||
try {
|
try {
|
||||||
let rawMessage = e.data,
|
let rawMessage = e.data,
|
||||||
message = JSON.parse(rawMessage);
|
message = JSON.parse(rawMessage);
|
||||||
@ -359,7 +359,7 @@ $(async function () {
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
console.log(message.eventType, message.data)
|
console.log(message.eventType, message.data)
|
||||||
let emote = handleEmoteData(message.data)
|
let emote = await handleEmoteData(message.data)
|
||||||
if(message.eventType == 'bounce') {
|
if(message.eventType == 'bounce') {
|
||||||
createParticule(BounceP, emote, {}, {})
|
createParticule(BounceP, emote, {}, {})
|
||||||
}else if(message.eventType == 'rain') {
|
}else if(message.eventType == 'rain') {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user