add a RelayLog to each RelayConnection and send events to it

Signed-off-by: Bryan Montz <bryanmontz@me.com>
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
Bryan Montz
2023-07-09 08:45:34 -05:00
committed by William Casarin
parent ef4aeb40e0
commit 40e5e4a026
2 changed files with 9 additions and 1 deletions

View File

@@ -19,7 +19,7 @@ enum WebSocketEvent {
case .connected:
return "Connected"
case .message(_):
return "Received message"
return nil // adding this to the RelayLog was too noisy
case .disconnected(let close_code, let reason):
return "Disconnected: Close code: \(close_code), reason: \(reason ?? "unknown")"
case .error(let error):