Swiftpack.co - Package - shareup/websocket-protocol

WebSocketProtocol

(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

  1. In your Terminal, navigate to the WebSocketProtocol directory
  2. Open the WebSocketProtocol Swift package using Xcode
  3. Make sure the build target is macOS
  4. Product -> Test

Using swift test

  1. In your Terminal, navigate to the WebSocketProtocol directory
  2. Open the WebSocketProtocol directory in another Terminal window
  3. Run the tests using swift test

Github

link
Stars: 0

Dependencies

Used By

Total: 0

Releases

v2.3.0 -

Conform WebSocketMessage to CustomStringConvertible.

v2.2.0 -

Add WebSocketProtocol.maximumMessageSize.

v2.1.1 -

Add documentation to WebSocketCloseCode.

v2.1.0 -

Add CaseIterable conformance to WebSocketCloseCode.

v2.0.0 -

Add WebSocketCloseCode and WebSocketProtocol.connect().

v1.2.0 -

Add Hashable conformance to WebSocketMessage

v1.1.0 -

Add Equatable conformance to WebSocketMessage.

v1.0.0 -

Initial release defining a simple WebSocket protocol in Swift.