moozzyk / SignalR-Client-Swift

Swift SignalR Client for Asp.Net Core SignalR server
MIT License
356 stars 136 forks source link

Connection closes after a while. #274

Closed Cemoo closed 1 year ago

Cemoo commented 1 year ago

Hi, client connection is closing itself after a while, here is logs about the case;

2023-02-23T19:14:42.711Z info: WebSocket close. Clean: false, code: 0, reason: 2023-02-23T19:14:42.711Z info: Transport closed 2023-02-23T19:14:42.711Z debug: Attempting to chage state from: '(nil)' to: 'stopped' 2023-02-23T19:14:42.711Z debug: Changing state to: 'stopped' succeeded 2023-02-23T19:14:42.711Z debug: Previous state connected 2023-02-23T19:14:42.711Z debug: Invoking connectionDidClose (transportDidClose(_:): 267) 2023-02-23T19:14:42.712Z info: HubConnection closing with error: Optional(SwiftSignalRClient.(unknown context at $1054c23b8).WebSocketsTransportError.webSocketClosed(statusCode: 0, reason: ""))

Do you have any idea about this case?

moozzyk commented 1 year ago

This fragment of the logs indicates that the transport was closed cleanly. This is just a subset of log entries so I am not sure 100% but I think the websocket was closed by the server.