Skip to content

Commit

Permalink
Revert "websocket: enable following redirects (#806)" (#807)
Browse files Browse the repository at this point in the history
This reverts commit fd8588a.
  • Loading branch information
janthurau authored Mar 24, 2024
1 parent 1192954 commit 930a61c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/provider/src/HocuspocusProviderWebsocket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 4,8 @@ import {
import { retry } from '@lifeomic/attempt'
import * as time from 'lib0/time'
import * as url from 'lib0/url'
import { type MessageEvent, Event } from 'ws'
import type { MessageEvent } from 'ws'
import { Event } from 'ws'
import EventEmitter from './EventEmitter.js'
import { HocuspocusProvider } from './HocuspocusProvider.js'
import {
Expand Down Expand Up @@ -348,7 349,7 @@ export class HocuspocusProviderWebsocket extends EventEmitter {
this.identifier = 1

// Init the WebSocket connection
const ws = new this.configuration.WebSocketPolyfill(this.url, { followRedirects: true })
const ws = new this.configuration.WebSocketPolyfill(this.url)
ws.binaryType = 'arraybuffer'
ws.identifier = this.identifier

Expand Down

0 comments on commit 930a61c

Please sign in to comment.