You may need to disable the automatic sending of ping because the client might not be sending pong.
This would cause your websocket connection to time out and disconnect.
You might not be able to use URLSessionWebSocketTask.
I'm a total Swift novice, but you might find my neglected project fah-minder useful.
In it, I use WebSocket and WebSocketDelegate.
You may need to disable the automatic sending of ping because the client might not be sending pong.
This would cause your websocket connection to time out and disconnect.
You might not be able to use URLSessionWebSocketTask.
I'm a total Swift novice, but you might find my neglected project fah-minder useful.
In it, I use WebSocket and WebSocketDelegate.