triniwiz / nativescript-socketio

Socket.IO for nativescript
Apache License 2.0
71 stars 31 forks source link

SocketManager is not defined #102

Closed stefanoScalzo closed 3 years ago

stefanoScalzo commented 3 years ago

Make sure to check the demo app(s) for sample usage

Demo app not up to date

Make sure to check the existing issues in this repository

None

If the demo apps cannot help and there is no issue for your problem, tell us about it

Please, ensure your title is less than 63 characters long and starts with a capital letter. Trying to create a basic socket in NS angular and throwing "SocketManager is not defined" exception.

Which platform(s) does your issue occur on?

Please, provide the following version numbers that your issue occurs with:

Wild guess: It seems like the SocketManager in the index.ios.js needs an import that isn't being supplied? Thanks

Is there any code involved?

component:

import { SocketIOModule } from "@triniwiz/nativescript-socketio/angular";
let socketIO = new SocketIO(http://localhost:3000/);

module:

import { SocketIOModule } from "@triniwiz/nativescript-socketio/angular";
SocketIOModule.forRoot(http://localhost:3000/)
stefanoScalzo commented 3 years ago

@triniwiz is this a bug or am I not implementing the code right?

M-Massey commented 3 years ago

@triniwiz I can also reproduce this issue.