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

Dev run automatically connects to Node #204

Open
qskousen opened this issue Oct 10, 2020 · 1 comment
Open

Dev run automatically connects to Node #204

qskousen opened this issue Oct 10, 2020 · 1 comment

Comments

@qskousen
Copy link

qskousen commented Oct 10, 2020

When running my app with yarn run start, the websocketStore connects to localhost:38535 regardless of what I have in the url parameter:

import websocketStore from 'svelte-websocket-store';
let myStore = websocketStore("ws://localhost:8080/ws", initialValue, []);

I am using the websocket store with a Go backend, not Node, so this is not helpful in my situation, though I can see how it would be if I were using Node. It does connect to my specified URL as well, but any commands seem to be sent to only the Node server Yarn is running.

Is there a way to disable this behaviour?

@arlac77
Copy link
Owner

arlac77 commented Nov 28, 2020

Which runtime are you using to provide 'new WebSocket()' ?

.

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

2 participants