lib/websocket: refactor websocket as a Protocol
authorLucas Bajolet <lucas.bajolet@gmail.com>
Wed, 9 May 2018 16:07:40 +0000 (12:07 -0400)
committerLucas Bajolet <lucas.bajolet@gmail.com>
Fri, 11 May 2018 14:26:43 +0000 (10:26 -0400)
commita6e96d24002d63c93907c540b5610f05d469c663
tree75ba1940b5758ddfc565b773a5617f6d158c30a8
parenta2535e7f792ad61b3c78ada90b9698444403c81e
lib/websocket: refactor websocket as a Protocol

Websocket can be re-implemented as a Protocol to be implemented atop a
TCP stream.

This refactor should be more memory-efficient when handling incoming
data.

Signed-off-by: Lucas Bajolet <lucas.bajolet@gmail.com>
lib/websocket/examples/websocket_server.nit
lib/websocket/websocket.nit