ws-protocol

Crates.iows-protocol
lib.rsws-protocol
version0.3.0
sourcesrc
created_at2021-04-20 05:42:35.239174
updated_at2021-04-20 13:49:02.860591
descriptionwebsocket protocol
homepagehttps://github.com/WatchDG/rust-ws-protocol
repositoryhttps://github.com/WatchDG/rust-ws-protocol
max_upload_size
id386940
size15,355
(WatchDG)

documentation

https://docs.rs/ws-protocol

README

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);
}
Commit count: 4

cargo fmt