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.
9 lines
214 B
9 lines
214 B
8 years ago
|
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)
|
||
|
}
|