-
-
Notifications
You must be signed in to change notification settings - Fork 31
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
FeathersJS Socket.IO and net module #95
Comments
If I install the
And the error is gone if I remove the import. I'm not sure I have to install the net module by the way, I don't have to on web dev. |
I also opened feathersjs/feathers#1843, I'm not very sure what should be fixed here. |
@soullivaneuh did the suggested fix resolve your issue? I think it would be something like this: import feathers from '@feathersjs/client'
import feathersSocketIO from '@feathersjs/socketio-client'
var SocketIO = require('nativescript-socketio').SocketIO;
var socket = new SocketIO('http://localhost:3030', { transports: ['websocket'] })
// let hasConnectedOnce = false
const feathersClient = feathers()
.configure(feathersSocketIO(socket)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Which platform(s) does your issue occur on?
Please, provide the following version numbers that your issue occurs with:
Please, tell us how to recreate the issue in as much detail as possible.
Import Feathers socket io client on one of your pages:
And run
tns build android
You will get this error:
It's maybe FeathersJS related only, but I'm not sure and would like to know what you, native expert, thing about this issue.
Is there any code involved?
Here is a PR coming from a fresh svelte-native template: https://github.com/soullivaneuh/svelte-native-test/pull/2
The text was updated successfully, but these errors were encountered: