mirror of
https://github.com/MercuryWorkshop/adrift.git
synced 2025-05-12 22:00:02 -04:00
fmt
This commit is contained in:
parent
d996adbd2e
commit
a43cf04780
1 changed files with 5 additions and 5 deletions
|
@ -71,6 +71,7 @@ export class AdriftBareClient extends Client {
|
|||
let initalCloseHappened = false;
|
||||
ws.addEventListener("close", (e) => {
|
||||
if (!initalCloseHappened) {
|
||||
onReadyState(WebSocket.CONNECTING);
|
||||
e.stopImmediatePropagation();
|
||||
initalCloseHappened = true;
|
||||
}
|
||||
|
@ -98,8 +99,7 @@ export class AdriftBareClient extends Client {
|
|||
send(data);
|
||||
};
|
||||
|
||||
ws.close =
|
||||
(code?: number, reason?: string) => {
|
||||
ws.close = (code?: number, reason?: string) => {
|
||||
close(code, reason);
|
||||
onReadyState(WebSocket.CLOSING);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue