Cleanly close websocket

This commit is contained in:
Maximilian Grundke
2018-05-16 14:37:13 +02:00
parent a92c13ed71
commit e4525bca36

View File

@ -108,5 +108,5 @@ CommandSocket.prototype.flush = function() {
*/
CommandSocket.prototype.killWebSocket = function() {
this.websocket.flush();
this.websocket.close();
this.websocket.close(1000);
};