Skip to content

P2P message support #391

@kondareddy

Description

@kondareddy

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions