Closed Stovoy closed 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?
@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
.
Adds args for --ssl-cert and --ssl-key. If both are specified, this will use
ListenAndServeTLS
instead ofListenAndServe
. Tested and works, when combined with Lightspeed-react using wss:// in config.json as well as the same ssl cert and ssl key.