mirror of
https://git.ngram.ca/OpenJam/rc-servers
synced 2026-08-23 23:08:52 +00:00
Implement lobby parts of custom games #38
This commit is contained in:
1 parent
af04c4093c
commit
6a953bc613
32 files changed
+1045
-61
No files matched your search
@@ -46,6 +46,11 @@ async fn main() -> std::io::Result<()> {
|
||||
|
||||
let server = std::sync::Arc::new(polariton_server::Server::new(operations::handler(&init_ctx), polariton_server::events::EventsHandler::new()));
|
||||
|
||||
crate::events::IntercomHandler::new(
|
||||
init_ctx.users.clone(),
|
||||
init_ctx.queue.clone(),
|
||||
).run();
|
||||
|
||||
let ip_addr: std::net::IpAddr = args.ip.parse().expect("Invalid IP address");
|
||||
|
||||
let listener = net::TcpListener::bind(std::net::SocketAddr::new(ip_addr, args.port)).await?;
|
||||
|
||||
Reference in new issue
Block a user