react-native-socketio在iOS中的SocketIO连接中获取错误

时间:2017-03-22 12:34:18

标签: react-native socket.io react-native-ios

  

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});

undefined is not an object (evaluating this.sockets.initialize)

react-native:0.42
MACOS

观察:在Android中效果很好

0 个答案:

没有答案