[−][src]Function tab_websocket::server::spawn_server
pub async fn spawn_server<Request: DeserializeOwned + Send + Sync + 'static, Response: Serialize + Debug + Send + Sync + 'static, F: Fn(&Response) -> bool + Send + Sync + 'static>(
stream: TcpStream,
is_close: F
) -> Result<(Receiver<Request>, Sender<Response>)>