libp2p / js-libp2p-webrtc-star

libp2p WebRTC transport that includes a discovery mechanism provided by the signalling-star
https://libp2p.io
Other
320 stars 97 forks source link

feat: pass through middleware config, noDefaultRoute option (proposal) #454

Open abetaev opened 2 years ago

abetaev commented 2 years ago

this is the proposal

as a user of webrtc-star transport i want finer control over signalling server middleware to be able to:

  1. host web app which uses that signalling server
  2. provide CORS configuration for other web apps to make them able to communicate with this signalling server

i had to explicitly set test runtimes in aegir config in transport package because somehow it was trying to run tests within webworker runtime which does not (yet?) support WebRTC. i have no explanation for that. i use npm test command to run all tests