Ken
Ken
1. 你确定 socket 已经连接?(即 那句 pprint('connected...'); 已经执行?另外为什么是 pprint, 不是 print,pprint 是自己写的函数?) 2. 你确定 服务器端 已经 emit "news"? 并且有一个参数?并且服务器是发送给这个客户端(没有发错给别的客户端)?
did you use socket.emit('event_name', data); on the server side?
the socket.on('abc'...) will be fired only when the other party uses socket.emit('abc'...) to trigger it
There is no automatic callback in socket.io
1. on client side: ``` socket.on('fromservertoclient', (data) { // do something with data print('got response from server') }); socket.emit('fromclienttoserver', [data]); ``` 2. on server side: ``` socket.on('fromclienttoserver', function(data) { //...
@saarang1995 In my previous comment, we have the following FACTS: 1. The client is able to connect the server. 2. The server is able to receive a message from the...
@saarang1995, Hi there, this is rare, because I don't have the problem you mentioned!(I got 4 Yeses for points 1 to 4!) I tried to remember the times when my...
I believe we need to use ssl certs as well as 'https' servers in the index.js in order to run the examples using a remote browser.
@yandeu, for video broadcasting in browser, I think we need to use https in order to get the access right to the camera and microphone.
When I use: ``` https://www.myurl.com:8851 ``` to access the ping pong example (By using a remote browser), I got the following error: ``` $ npm start > [email protected] start /home/lichiukenneth/nodejs/node-webrtc-examples...