]> git.scottworley.com Git - reliable-chat/commitdiff
Send old clients a deprecation warning
authorScott Worley <sworley@chkno.net>
Fri, 3 Aug 2012 05:26:27 +0000 (22:26 -0700)
committerScott Worley <sworley@chkno.net>
Fri, 3 Aug 2012 05:26:27 +0000 (22:26 -0700)
/frame is no longer used by modern clients.

server/server.go

index 379ebb22644c168a9d8ec7ed6ca10f589a910564..1bb7c9af81935b417692ddc55b717a2ff8f4967e 100644 (file)
@@ -120,6 +120,7 @@ const frame_html = `<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
 <head>
  <script type="text/javascript"><!--//--><![CDATA[//><!--
   var since;
+  window.parent.postMessage('[{"Time":"2000-01-01T00:00:00.000000-00:00","ID":"/frame deprecation warning","Text":"*** You are using an old version of the client.  Please upgrade."}]', "*");
   function go() {
    var delay = 10000;
    var xhr = new XMLHttpRequest();