Merge remote-tracking branch 'origin/websocket' into chat_and_cache

This commit is contained in:
Gabriel Almeida 2023-04-25 19:47:13 -03:00
commit c50f80ae53

View file

@ -91,6 +91,12 @@ export default function ChatModal({
};
}, []);
useEffect(()=>{
if(ws && ws.CLOSED){
setLockChat(false)
}
},[lockChat])
async function sendAll(data: sendAllProps) {
if (ws) {
ws.send(JSON.stringify(data));