t-mullen / simple-signal

Signalling solution for simple-peer with socket.io
MIT License
162 stars 27 forks source link

Add `deny` option in addition to `accept` #18

Closed RangerMauve closed 5 years ago

RangerMauve commented 5 years ago

Sometimes an application will reach a limit on the number of peers it wants to be connected to. Would it be possible to add a request.deny() API to make it possible to signal to a peer that their request won't be accepted and that they should try someone else?

t-mullen commented 5 years ago

Added as request.reject([metadata]) in v2.1.0. Good idea!

RangerMauve commented 5 years ago

Awesome, thank you!