wss support
Closed this issue · 2 comments
sueboy19 commented
Hi
See connection inside write ws:
Can support wss: and port custome design. Thanks.
andreykaipov commented
Hey thanks for the issue! So I suppose I can parametrize the scheme here:
Lines 188 to 189 in 1267b7f
However the obs-websocket server unfortunately doesn't seem to support WSS (see obsproject/obs-websocket#26).
Their solution is to put the server behind a reverse proxy like ngrok to secure it. They have a guide on their wiki: https://github.com/obsproject/obs-websocket/wiki/SSL-Tunneling.
andreykaipov commented
Release v1.5.0 added a new WithScheme
functional option. The default scheme is ws
, but can be changed:
goobs.New("localhost:1234", goobs.WithScheme("wss"))