aboutsummaryrefslogtreecommitdiff
path: root/src/client/DocServer.ts
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2020-01-06 09:42:11 -0500
committerbob <bcz@cs.brown.edu>2020-01-06 09:42:11 -0500
commitdf12bd5432f24796de25f9aa85e278eae944edf7 (patch)
treea3d4916891e0b6860e18c547cbdb23fcb620e947 /src/client/DocServer.ts
parent8ae1d973896f8629e5d2030f756b7b63df530ad2 (diff)
parente4d9fd09f6ede20e79d58119d239bb7a3a7dae25 (diff)
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web
Diffstat (limited to 'src/client/DocServer.ts')
-rw-r--r--src/client/DocServer.ts2
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 {