react-native-swift-socketio icon indicating copy to clipboard operation
react-native-swift-socketio copied to clipboard

Undefined is not an object

Open tejashwikalptaru opened this issue 7 years ago • 0 comments

this.socket = new SocketIO('http://myserver.com:3000/', {secure: true}); this.socket.on('connect', () => { this.socket.emit('authentication', { token: this.state.valid, id_user: this.state.id });

Seems like NativeModule don't have Socket class, so it's throwing undefined error. I tried checking up bridges and exports but no luck.

tejashwikalptaru avatar Apr 12 '17 13:04 tejashwikalptaru