You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var P2P = require('socket.io-p2p');
var io = require('socket.io-client');
var socket = io();
var p2p = new P2P(socket);
p2p.on('peer-msg', function (data) {
console.log('From a peer %s', data);
});
I just need P2P message receive support for now. how can I achieve with this library?
The text was updated successfully, but these errors were encountered:
I have been using this library for server to client communication , works perfectly fine.
Now I need P2P messaging for faster communication between peers and found supported server and web code samples for same.
https://socket.io/blog/socket-io-p2p/
var P2P = require('socket.io-p2p');
var io = require('socket.io-client');
var socket = io();
var p2p = new P2P(socket);
p2p.on('peer-msg', function (data) {
console.log('From a peer %s', data);
});
I just need P2P message receive support for now. how can I achieve with this library?
The text was updated successfully, but these errors were encountered: