mirror of
https://github.com/MercuryWorkshop/adrift.git
synced 2025-05-13 06:10:01 -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,
|
webSocketImpl: WebSocketImpl,
|
||||||
arrayBufferImpl: ArrayBufferConstructor
|
arrayBufferImpl: ArrayBufferConstructor
|
||||||
): WebSocket {
|
): WebSocket {
|
||||||
const ws = new webSocketImpl("ws:null", protocols);
|
const ws = new webSocketImpl("wss:null", protocols);
|
||||||
// this will error. that's okay
|
// this will error. that's okay
|
||||||
let initalCloseHappened = false;
|
let initalCloseHappened = false;
|
||||||
ws.addEventListener("close", (e) => {
|
ws.addEventListener("close", (e) => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue