From 5111eb546d9bcd6070ddbe8076f3389a37cd7081 Mon Sep 17 00:00:00 2001 From: Sam Wilkins Date: Fri, 3 Jan 2020 01:15:17 -0800 Subject: factored out smaller functions in session --- src/client/DocServer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/client/DocServer.ts') diff --git a/src/client/DocServer.ts b/src/client/DocServer.ts index befe9ea5c..47c63bfb7 100644 --- a/src/client/DocServer.ts +++ b/src/client/DocServer.ts @@ -82,7 +82,7 @@ export namespace DocServer { Utils.AddServerHandler(_socket, MessageStore.UpdateField, respondToUpdate); Utils.AddServerHandler(_socket, MessageStore.DeleteField, respondToDelete); Utils.AddServerHandler(_socket, MessageStore.DeleteFields, respondToDelete); - _socket.on("connection_terminated", () => alert("Your connection to the server has been terminated.")); + Utils.AddServerHandler(_socket, MessageStore.ConnectionTerminated, () => alert("Your connection to the server has been terminated.")); } function errorFunc(): never { -- cgit v1.2.3-70-g09d2