gcrabtree/react-native-socketio

Android XHR polling

Closed this issue · 1 comments

I am trying to connect a react-native android app with a chat server that only allows polling.
However, I can't seem to establish a connection with the below implementation.
is XHR polling allowed react native?

var socketConfig = { transports: ['polling'], jsonp: false, forcePolling: true }; this.socket = new SocketIO('localhost:3000' ,socketConfig);

I'm sorry. Just realise it's my server side issue.