Commit a9dafd10 by qlintonger xeno

新旧断线处理完毕

parent 175f2fc3
pub const STATIC_WS_PWD: &str = "Q8kFm5LzJ2Ab";
\ No newline at end of file
......@@ -5,13 +5,14 @@ mod utils;
mod json_utils;
mod heartbeat;
mod handle_messages;
mod config;
use client::handle_client;
use tokio::net::TcpListener;
#[tokio::main]
async fn main() {
let addr = "0.0.0.0:8080";
let addr = "0.0.0.0:12345";
let listener = TcpListener::bind(addr).await.unwrap();
while let Ok((stream, _)) = listener.accept().await {
tokio::spawn(handle_client(stream));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment