GRVYDEV / Lightspeed-webrtc

A RTP -> WebRTC broadcast server for Project Lightspeed.
MIT License
75 stars 31 forks source link

Add support for WSS:// with arguments. #29

Closed Stovoy closed 3 years ago

Stovoy commented 3 years ago

Adds args for --ssl-cert and --ssl-key. If both are specified, this will use ListenAndServeTLS instead of ListenAndServe. Tested and works, when combined with Lightspeed-react using wss:// in config.json as well as the same ssl cert and ssl key.

GRVYDEV commented 3 years ago

Looks good! Could I have you add information on how to use this to the readme? Will this require action in the Lightspeed-react repository?

Stovoy commented 3 years ago

@GRVYDEV Done! For Lightspeed-react, no code change is necessary - the suggested serve package already supports the same args, --ssl-cert and --ssl-key. The only change that would be required would be to change wsUrl from ws://... to wss://... in build/config.json.