Peer custom additional information
Currently this is how we create a peer:
const peer = new Peer('pick-an-id', options);
Promote feature:
const peer = new Peer('pick-an-id', options, claims);
Where claims is inspired by Firebase custom claims.
Hey @chientrm, interesting idea!
Can you tell me a bit more about your use case?
Hey @chientrm, interesting idea!
Can you tell me a bit more about your use case?
I am working on a serverless multiplayer lobby. Instead of maintaining a separated services for peer infomation like Full Name, email, age,... I suggest to have a custom field for storing those once initiating a new peer.
This additional data would be pass to dataConnection so that serving peer can retrieve them.
The data type should be any.
This custom infomation is passed directly from peer to peer without peerjs server interfere.
Data size would not be limited because it does not pass via peerjs server.