-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor KASWebSocket.swift for managing connection state
The code changes involve refactoring the KASWebSocket.swift class to manage the WebSocket connection state with Combine. This reorganization includes the creation of a connectionStateSubject and the introduction of connection and disconnection states, as well as a publisher for these states. The code now also performs periodic "pinging" to check the connection status.
- Loading branch information
1 parent
85f4734
commit 141f6fc
Showing
1 changed file
with
84 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters