shareup/websocket-protocol
A package declaring a simple protocol for WebSocket clients to adhere to. This protocol is intended to be able to be used to abstract away [`URLSessionWebSocketTask`](https://developer.apple.com/documentation/foundation/urlsessionwebsockettask) and [Starscream](https://github.com
_(macOS, iOS, iPadOS, tvOS, and watchOS)_
A package declaring a simple protocol for WebSocket clients to adhere to. This protocol is intended to be able to be used to abstract away URLSessionWebSocketTask and Starscream, but it could be easily used for other WebSocket clients.
Tests
Using Xcode
- In your Terminal, navigate to the
WebSocketProtocoldirectory - Open the
WebSocketProtocolSwift package using Xcode - Make sure the build target is macOS
- Product -> Test
Using swift test
- In your Terminal, navigate to the
WebSocketProtocoldirectory - Open the
WebSocketProtocoldirectory in another Terminal window - Run the tests using
swift test
Package Metadata
Repository: shareup/websocket-protocol
Default branch: main
README: README.md