commit | e39816431c478acd5a4c8958bd3b5430cad85547 | [log] [tgz] |
---|---|---|
author | Robert Newson <rnewson@apache.org> | Mon Jun 26 21:29:08 2023 +0100 |
committer | Robert Newson <rnewson@apache.org> | Tue Jun 27 23:33:37 2023 +0100 |
tree | 2cce1660320569b4f4e8faeafbdb6e0b0316a422 | |
parent | 9aed5feb198a3f87306eee101409cdd6ee9c2ac4 [diff] |
support Websocket protocol for continuous response This isn't full Websocket protocol as mochiweb doesn't have the plumbing but it's still useful. The endpoint will not return a pong if the client sends a ping but if the heartbeat parameter is used the server will send pongs at that right as a keep-alive. If the server encounters an error it sends a Close message with the reason before closing the socket.