1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
//! # Signal Fish Server
//!
//! A lightweight, in-memory WebSocket signaling server for peer-to-peer game networking.
//!
//! Zero external dependencies — no database, no cloud services.
//! Just run the binary and connect via WebSocket.
/// Authentication middleware (in-memory backed)
/// Optimized broadcast message handling
/// Server configuration and environment variables
/// Room and player coordination logic
/// Database abstraction layer (in-memory implementation)
/// Distributed locking (in-memory implementation)
/// Structured logging configuration
/// Metrics collection and reporting
/// WebSocket message protocol definitions
/// Rate limiting implementation
/// Reconnection token and state management
/// Retry logic utilities
/// Zero-copy serialization utilities
/// TLS and crypto utilities
/// Main server orchestration
/// WebSocket connection handling