diff options
author | Sam Wilkins <samwilkins333@gmail.com> | 2020-01-03 01:15:17 -0800 |
---|---|---|
committer | Sam Wilkins <samwilkins333@gmail.com> | 2020-01-03 01:15:17 -0800 |
commit | 5111eb546d9bcd6070ddbe8076f3389a37cd7081 (patch) | |
tree | 006ddd2225988936032431b9fa8fc8faed5fdaca /src/client/DocServer.ts | |
parent | 75a0a9be12d4902898f8b82ec1df4e2ce41bb326 (diff) |
factored out smaller functions in session
Diffstat (limited to 'src/client/DocServer.ts')
-rw-r--r-- | src/client/DocServer.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |