mirror of
https://github.com/MercuryWorkshop/adrift.git
synced 2025-05-12 22:00:02 -04:00
(hopefully) fix websockets breaking on secure origins
This commit is contained in:
parent
15160ca408
commit
af5be8e9a2
1 changed files with 1 additions and 1 deletions
|
@ -158,7 +158,7 @@ export class AdriftBareClient extends Client {
|
|||
webSocketImpl: WebSocketImpl,
|
||||
arrayBufferImpl: ArrayBufferConstructor
|
||||
): WebSocket {
|
||||
const ws = new webSocketImpl("ws:null", protocols);
|
||||
const ws = new webSocketImpl("wss:null", protocols);
|
||||
// this will error. that's okay
|
||||
let initalCloseHappened = false;
|
||||
ws.addEventListener("close", (e) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue