Crates.io | ws-protocol |
lib.rs | ws-protocol |
version | 0.3.0 |
source | src |
created_at | 2021-04-20 05:42:35.239174 |
updated_at | 2021-04-20 13:49:02.860591 |
description | websocket protocol |
homepage | https://github.com/WatchDG/rust-ws-protocol |
repository | https://github.com/WatchDG/rust-ws-protocol |
max_upload_size | |
id | 386940 |
size | 15,355 |
websocket protocol
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);
}
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);
}