aboutsummaryrefslogtreecommitdiff
path: root/src/client/DocServer.ts
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2019-12-09 10:16:58 -0500
committerbob <bcz@cs.brown.edu>2019-12-09 10:16:58 -0500
commit2b5002cb19fd896426df2a26b981b99fb88dc119 (patch)
treed929ea2c4f761146367043c65125f7cd3f904535 /src/client/DocServer.ts
parente5ca273b70c2c41f953ad2a534afabdb313f3e99 (diff)
parentcfaf02757f5aebd2ccce0bbef8b6f5e232932693 (diff)
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web
Diffstat (limited to 'src/client/DocServer.ts')
-rw-r--r--src/client/DocServer.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/DocServer.ts b/src/client/DocServer.ts
index e4b183715..befe9ea5c 100644
--- a/src/client/DocServer.ts
+++ b/src/client/DocServer.ts
@@ -82,6 +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."));
}
function errorFunc(): never {