Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem in y-websocket connection #81

Open
gigabyteservice opened this issue Jun 23, 2022 · 0 comments
Open

Problem in y-websocket connection #81

gigabyteservice opened this issue Jun 23, 2022 · 0 comments

Comments

@gigabyteservice
Copy link

Describe the bug
I'm unable to code Syncing in Codemirror.
I'm getting a problem y-websocket connection
"y-websocket.js:91 WebSocket connection to 'wss://board.example.com:1234/public-room' failed:

in package.json
"crdt-server": "cd client && HOST=board.example.com PORT=1234 npx y-websocket",
so I'm getting
running at 'board.example.com' on port 1234

and
provider = new WebsocketProvider('wss://board.example.com:1234', roomID, ydoc); in CodeMirrorEditor.tsx
( AWS ports are open for : 1234,3090,5001)

REACT_APP_CLIENT_URL = https://board.example.com:3090 (localhost:3000)
REACT_APP_SERVER_URL = https://board.example.com:5001 (localhost:5000 reverse proxy by Nginx)

&

CLIENT_URL=https://board.example.com:3090
SERVER_URL=http://localhost:5000

socket.io is working fine,
I can see users' join and left notifications, language changes, etc the only issue is code Syncing.

Expected behavior
Code syncing should work in Codemirror.

Desktop (please complete the following information):

  • OS: MacOS
  • Browser Chrome Version 102.0.5005.115 (Official Build) (arm64)

Please provide your suggestions.

@gigabyteservice gigabyteservice changed the title problem in y-websocket connection connection problem in y-websocket connection Jun 23, 2022
@gigabyteservice gigabyteservice changed the title problem in y-websocket connection Problem in y-websocket connection Jun 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant