Skip to content

Commit

Permalink
feat: fix wss protocol back in
Browse files Browse the repository at this point in the history
  • Loading branch information
f-steel committed Sep 2, 2024
1 parent b2ee062 commit b795f2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/_components/Editor/Editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,8 @@ const Editor = React.memo(function EditorC({
id={colabID}
// @ts-ignore
providerFactory={(id, yjsDocMap) => {
// problems with wss for now, try to use ws
const protocol = 'ws:';
const protocol =
window.location.protocol === 'https:' ? 'wss:' : 'ws:';
let doc = yjsDocMap.get(id);
if (!doc) {
doc = new Y.Doc();
Expand Down

0 comments on commit b795f2a

Please sign in to comment.