Crate twist [−] [src]
An implementation of the RFC6455 websocket protocol as
a set of tokio Codec
anda tokio-proto pipeline ServerProto
Basic Usage
use twist::proto::Frame; use tokio_proto::TcpServer; let ws_proto: Frame = Default::default(); let server = TcpServer::new(ws_proto, unenc_socket_addr);
Structs
BaseFrame |
A websocket base frame. |
BaseFrameCodec |
Codec for dedoding/encoding websocket base frames. |
HanshakeCodec |
Codec for decoding/encoding websocket handshake frames. |
TwistCodec |
Codec for use with the |
WebSocketFrame |
A |
WebSocketProtocol |
The protocol that you should run a tokio-proto
|
Enums
OpCode |
Operation codes defined in RFC6455. |