secure webclient socket (#4432)

Co-authored-by: Jeremy Letto <jeremy.letto@datasite.com>
This commit is contained in:
Jeremy Letto 2021-10-14 20:58:34 -05:00 committed by GitHub
parent 36e5a399d5
commit 19333c53f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -212,7 +212,7 @@ export class WebClient {
const { host, port } = this.options;
this.socket = new WebSocket("ws://" + host + ":" + port);
this.socket = new WebSocket("wss://" + host + ":" + port);
this.socket.binaryType = "arraybuffer"; // We are talking binary
this.socket.onopen = () => {