andremussche/DelphiWebsockets

Request for code update IdHTTPWebsocketClient.pas to support wss

leolamau opened this issue · 0 comments

so i manage to get wss (web socket with SSL). I notice socket.io have conditional define WEBSOCKETSSL, for SSL support. But the normal websocket does not. Can someone please have the
procedure TIdHTTPWebsocketClient.InternalUpgradeToWebsocket
update with the following lines:

{$IFDEF WEBSOCKETSSL}
sURL := Format('https://%s:%d/%s', [Host, Port, WSResourceName]);
{$ELSE}
sURL := Format('http://%s:%d/%s', [Host, Port, WSResourceName]);
{$ENDIF}