You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tungstenite-rs/src/server.rs

9 lines
214 B

use std::net::TcpStream;
use handshake::server::ServerHandshake;
/// Accept the given TcpStream as a WebSocket.
pub fn accept(stream: TcpStream) -> ServerHandshake<TcpStream> {
ServerHandshake::new(stream)
}