-
Notifications
You must be signed in to change notification settings - Fork 495
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
Is there a way to instantiate connection inside a component? #4
Comments
Got the same question as well! |
Stuck with same |
LOL, duplicated but where is the first issue link? |
It is possible to init connection in component? not in main.js? |
@MetinSeylan any thoughts on this? Would be great if you could instantiate the socket connection not in main.js and not when app is created, but later, say after user has logged in. |
it can be done by through socket.io options and API https://socket.io/docs/client-api/#socket-open
|
Is possible to connect inside a component? I mean, not in main.js but in a module, something like Login.vue
The text was updated successfully, but these errors were encountered: