Merge remote-tracking branch 'origin/websocket' into chat_and_cache
This commit is contained in:
commit
c50f80ae53
1 changed files with 6 additions and 0 deletions
|
|
@ -91,6 +91,12 @@ export default function ChatModal({
|
||||||
};
|
};
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
|
useEffect(()=>{
|
||||||
|
if(ws && ws.CLOSED){
|
||||||
|
setLockChat(false)
|
||||||
|
}
|
||||||
|
},[lockChat])
|
||||||
|
|
||||||
async function sendAll(data: sendAllProps) {
|
async function sendAll(data: sendAllProps) {
|
||||||
if (ws) {
|
if (ws) {
|
||||||
ws.send(JSON.stringify(data));
|
ws.send(JSON.stringify(data));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue