mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-24 10:28:03 +01:00
WebSocketResource exposes socket.close()
Allows for simplification of the keepalive construct.
This commit is contained in:
@@ -97,6 +97,10 @@
|
||||
return new OutgoingWebSocketRequest(options, socket);
|
||||
};
|
||||
|
||||
this.close = function() {
|
||||
socket.close(3000);
|
||||
};
|
||||
|
||||
socket.onmessage = function(socketMessage) {
|
||||
var blob = socketMessage.data;
|
||||
var reader = new FileReader();
|
||||
|
||||
Reference in New Issue
Block a user