$ git clone https://ion.nu/git/webchat
commit d2d74edbea6b37bcc96dd1935e01e599ef32a822
Author: Alicia <...>
Date:   Mon Jan 4 23:37:21 2016 +0100

    Respond to websocket pings

diff --git a/src/chat.c b/src/chat.c
index 99c9de8..8a0ee39 100644
--- a/src/chat.c
+++ b/src/chat.c
@@ -655,6 +655,10 @@ printf("Got video packet\n");
         }
         users[i]->bincmd=bincmd_none;
       }
+      else if(head.opcode==WEBSOCK_PING)
+      {
+        websock_write(users[i]->socket, data, head.length, WEBSOCK_PONG, use_tls);
+      }
     }
   }
   return 0;