oney / react-native-webrtc-server

145 stars 91 forks source link

Getting Error .emit is undefined #11

Open venkateswararao opened 7 years ago

venkateswararao commented 7 years ago

I cloned the server code and hosted in node.js server when i try to join room getting error .emit is undefined in server side code

var to = io.sockets.connected[data.to]; to.emit('exchange', data);

punarinta commented 7 years ago

@venkateswararao, did you manage to solve this?

hameed0z commented 6 years ago

yes i have the same problem

FujikawaNaoki commented 6 years ago

I tried it, but it was the same. Fixing version of socket.io library to 1.3.x solved the problem.

omererbil commented 6 years ago

any update?still not work

randymuhroji commented 6 years ago

+1

gilpanal commented 6 years ago

Hi, can you provide more details about how and where exactly are you getting that error, please? PC/Mac, browser, node version, etc.

Please check my fork and share the results here, thank you: https://github.com/gilpanal/react-native-webrtc-server

It should work using Chrome latest and Node v8.11.3 (node -v)