Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

P2P message support #391

Open
kondareddy opened this issue Oct 23, 2024 · 0 comments
Open

P2P message support #391

kondareddy opened this issue Oct 23, 2024 · 0 comments

Comments

@kondareddy
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant