Hi,
I wanted to add webrtc to my project. I successfully started demo app, it was great.
Now when I try to copy implementation from demo I get error:

Any clue will be helpful
it happens both on ios and android
This article might help https://medium.com/@ekryski/how-to-actually-use-socket-io-in-react-native-39082d8d6172#.xlyiaqjvf
also try setting jsonp false like this:
var socket = io.connect('http://react-native-webrtc.herokuapp.com', {jsonp: false})
@parthi82 You are right.
Thank you.
The problem was with user agent (it must be set to 'react native'). When I was debugging in chrome, user agent was set automatically to chrome user agent. When I disabled debugging it started working.
Most helpful comment
This article might help https://medium.com/@ekryski/how-to-actually-use-socket-io-in-react-native-39082d8d6172#.xlyiaqjvf
also try setting jsonp false like this:
var socket = io.connect('http://react-native-webrtc.herokuapp.com', {jsonp: false})