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

Allow config overwrite in socket connection #20

Open
daanvanham opened this issue Jul 9, 2024 · 0 comments
Open

Allow config overwrite in socket connection #20

daanvanham opened this issue Jul 9, 2024 · 0 comments

Comments

@daanvanham
Copy link

I was running into an issue where I wanted to overwrite the path of the socket connection, but for some reason it wasn't listening to the config I changed. I noticed in this issue, that the plugin.client.ts file currently just tries to open a connection, not checking any config set. This resulted in me opening 2 connections, where the default connection was just polling /socket.io.

Somewhere else in my code I was doing this:

const io = useIO();
const socket = io('', { path: '/somepath' });

And this was working fine for that connection, but the initial connection is breaking things.

Am I doing something wrong in my code, or should this plugin.client.ts file be changed that it takes into consideration the config for the plugin?

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