From bf611698b200a9bdfb44ce84724ea06ce762c107 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Mon, 9 Mar 2015 17:40:06 +0200 Subject: [PATCH] No need for a separate 'close' request Having a 'close' would mean being able to do a new 'open', too, which introduces unneeded complexity, at least at this stage. Just start a fresh WebSocket connection for each document. --- loolwsd/LOOLSession.cpp | 5 ----- loolwsd/protocol.txt | 2 -- 2 files changed, 7 deletions(-) diff --git a/loolwsd/LOOLSession.cpp b/loolwsd/LOOLSession.cpp index b816890cf..8374f5faf 100644 --- a/loolwsd/LOOLSession.cpp +++ b/loolwsd/LOOLSession.cpp @@ -74,11 +74,6 @@ bool LOOLSession::handleInput(char *buffer, int length) { sendTile(tokens); } - else if (tokens[0] == "close") - { - _loKitDocument->pClass->destroy(_loKitDocument); - _loKitDocument = NULL; - } return true; } diff --git a/loolwsd/protocol.txt b/loolwsd/protocol.txt index 16af17b30..c9ac50a0c 100644 --- a/loolwsd/protocol.txt +++ b/loolwsd/protocol.txt @@ -10,8 +10,6 @@ status tile width= height= tileposx= tileposy= tilewidth= tileheight= -close - server -> client ================