Crates.io | websocket-sans-io |
lib.rs | websocket-sans-io |
version | 0.1.0 |
source | src |
created_at | 2023-11-15 20:55:42.76669 |
updated_at | 2023-11-15 20:55:42.76669 |
description | Low-level WebSocket library |
homepage | |
repository | https://github.com/vi/websocket-sans-io |
max_upload_size | |
id | 1036820 |
size | 106,568 |
Low-level WebSocket (RFC 6455) library which implements WebSocket frame encoding and decoding.
large_frames
crate feature.It is also user's job to handle pings, HTTP upgrades, masking and close frames properly. There is no automatic assembling of messages from frames or splitting messages into frames. WebSocket text frames are handled the same way as binary frames - you need to convert to a string yourself.
127.0.0.1:1234
and send back all frames which come from it, announcing each frame on console. Uses Tokio and hyper v1. Demonstrates how to validate incoming frames.