13 releases

0.5.1 Oct 11, 2023
0.5.0 Jul 10, 2022
0.4.0 May 21, 2022
0.3.2 Mar 22, 2022
0.1.1 Nov 20, 2021

#138 in WebSocket

45 downloads per month
Used in stuart

MIT license

300KB
6K SLoC

Humphrey WebSocket

WebSocket support for the Humphrey web server.
Guide · API Reference



Humphrey WebSocket is a crate which extends Humphrey Core with WebSocket support by hooking into the latter's WebsocketHandler trait. It handles the WebSocket handshake and framing protocol and provides a simple and flexible API for sending and receiving messages. Using Humphrey's generic Stream type, it supports drop-in TLS. It also has no dependencies in accordance with Humphrey's goals of being dependency-free.

Learn more about Humphrey WebSocket here.


lib.rs:

Humphrey WebSocket is a crate which extends Humphrey Core with WebSocket support by hooking into the latter's WebsocketHandler trait. It handles the WebSocket handshake and framing protocol and provides a simple and flexible API for sending and receiving messages. Using Humphrey's generic Stream type, it supports drop-in TLS. It also has no dependencies in accordance with Humphrey's goals of being dependency-free.

It provides both synchronous and asynchronous WebSocket functionality.

Learn more about Humphrey WebSocket here.

Dependencies