3 releases (breaking)
0.3.0 | Apr 20, 2021 |
---|---|
0.2.0 | Apr 20, 2021 |
0.1.0 | Apr 20, 2021 |
#291 in WebSocket
Used in 2 crates
12KB
325 lines
ws-protocol
websocket protocol
Sec-WebSocket-Key
extern crate ws_protocol;
use ws_protocol::gen_sec_websocket_key;
fn main() {
let sec_web_socket_key = gen_sec_websocket_key();
println!("{}", sec_web_socket_key);
}
Sec-WebSocket-Accept
extern crate ws_protocol;
use ws_protocol::get_sec_websocket_accept;
use ws_protocol::gen_sec_websocket_key;
fn main() {
let sec_web_socket_key = gen_sec_websocket_key();
let sec_web_socket_accept = get_sec_websocket_accept(&sec_web_socket_key);
println!("{}", sec_web_socket_accept);
}
Dependencies
~370KB