triniwiz / nativescript-socketio

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

Event Listener don't working in iOS #85

Open Sartori-RIA opened 5 years ago

Sartori-RIA commented 5 years ago

Event Listener don't working in iOS

hi, I'm trying to use the library in iOS app (the app works in both, but only iOS has a problem). I'm have a event listener but only in iOS do not work and don't has any error

others action like connection() and emit() works fine

Platforms

Versions

My source code:

        this.socketIO.on('message', (data) => {
            console.log('received data from socket');
            console.log(data);
        }); 

and


receivedMessages$: Observable<Message> = fromEvent<Message>(this.socket, 'message');

receivedMessages$.subscribe(data => {
   console.log('received data from socket');
   console.log(data);
}
jannomeister commented 5 years ago

@triniwiz any update for this plugin? this is so useful for us devs :(