fix not being able to re-enable sockets until page refresh

This commit is contained in:
Henry Jameson 2021-01-13 21:33:20 +02:00
parent 64fa662644
commit 48bef143d8
3 changed files with 12 additions and 1 deletions

View file

@ -1152,6 +1152,7 @@ export const ProcessedWS = ({
// 1000 = Normal Closure
eventTarget.close = () => { socket.close(1000, 'Shutting down socket') }
eventTarget.getState = () => socket.readyState
return eventTarget
}