-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Websocket issue: WebSocket connection to 'ws://localhost:8765/gun' failed: #1278
Comments
@mertdeveci5 browsers need to import gun using Does this fix your issue? |
This did not fix it but I guessed I fixed it by adding the localhost:8765 as a peer in the frontend. Nevertheless, the websocket error keeps popping up from time to time |
ah yeah, I didn't even notice you didn't provide a URI for the relay. Without that, the apps don't know about each other. Are you using |
Hi, were you able to solve that? I'm facing the same issue in my sveltekit project and have no idea how to fix this can you help? |
Everytime I run gun.js in the frontend of my application, I get the following error in the console of the browser:
WebSocket connection to 'ws://localhost:8765/gun' failed:
The link changes to various different URLs and there is a new log with a new link every several seconds. Does anyone know the reason for this? Or do I have the incorrect configurations? Please see below for reference:
user.js
server.js
The text was updated successfully, but these errors were encountered: