1- [ ![ swift-version] ( https://img.shields.io/badge/swift-5.10 -ea7a50.svg?logo=swift )] ( https://github. com/apple/ swift )
2- [](https://github.com/apple/swift-package-manager)
3- [](https://en.wikipedia.org/wiki/List_of_Apple_operating_systems)
4- [ ![ build-status ] ( https://github.com/backslash-f/observable-websocket-client/actions/workflows/swift.yml/badge. svg?branch=main )] ( https://github.com/backslash-f/observable-websocket-client/actions )
5- [](https://en.wikipedia.org/wiki/MIT_License)
6-
1+ [ ![ swift-version] ( https://img.shields.io/badge/swift-6.2 -ea7a50.svg?logo=swift&logoColor=white )] ( https://developer.apple. com/swift/ )
2+ [ ![ xcode-version] ( https://img.shields.io/badge/xcode-26.2-50ace8.svg?logo=xcode&logoColor=white )] ( https://developer.apple.com/xcode/ )
3+ [ ![ spm-ready] ( https://img.shields.io/badge/spm-ready-b68f6a.svg?logo=gitlfs&logoColor=white )] ( https://developer.apple.com/documentation/xcode/swift-packages )
4+ [ ![ platforms ] ( https://img.shields.io/badge/platforms-iOS%2017+%20%7C%20macOS%2014+%20-lightgrey. svg?logo=apple&logoColor=white )] ( https://en.wikipedia.org/wiki/List_of_Apple_operating_systems )
5+ [ ![ license] ( https://img.shields.io/badge/license-MIT-67ac5b.svg?logo=googledocs&logoColor=white )] ( https://en.wikipedia.org/wiki/MIT_License )
6+ [ ![ release ] ( https://github.com/thatfactory/observable-websocket-client/actions/workflows/release.yml/badge.svg )] ( https://github.com/thatfactory/observable-websocket-client/actions/workflows/release.yml )
77
88# ObservableWebSocketClient ⚡
99A Swift package that establishes [ WebSocket connections] ( https://en.wikipedia.org/wiki/WebSocket ) and publishes received messages and errors from an [ Observable Object] ( https://developer.apple.com/documentation/combine/observableobject ) .
@@ -98,7 +98,7 @@ wsClient.sendMessage("A String WebSocket message")
9898## Demo
9999In this demo app, the ` ObservableWebSocketClient ` connects to a [ Kucoin WebSocket server] ( https://www.kucoin.com/docs/websocket/introduction ) and sends ` ping ` messages every ` pingTimerInterval ` to keep the connection alive. The server responds with ` welcome ` and ` pong ` messages:
100100
101- https://github.com/backslash-f /observable-websocket-client/assets/664951/2c8897e4-6d25-413b-9f12-d61b32ebbf0d
101+ https://github.com/thatfactory /observable-websocket-client/assets/664951/2c8897e4-6d25-413b-9f12-d61b32ebbf0d
102102
103103## Integration
104104### Xcode
@@ -111,26 +111,26 @@ In your `Package.swift`, add `ObservableWebSocketClient` as a dependency:
111111
112112``` swift
113113dependencies: [
114- .package (
115- url : " https://github.com/backslash-f /observable-websocket-client" ,
116- from : " 1.0 .0"
117- )
114+ .package (
115+ url : " https://github.com/thatfactory /observable-websocket-client" ,
116+ from : " 0.1 .0"
117+ )
118118]
119119```
120120
121121Associate the dependency with your target:
122122
123123``` swift
124124targets: [
125- .target (
126- name : " YourAppName " ,
127- dependencies : [
128- .product (
129- name : " ObservableWebSocketClient" ,
130- package : " observable-websocket-client"
131- )
132- ]
133- )
125+ .target (
126+ name : " YourTarget " ,
127+ dependencies : [
128+ .product (
129+ name : " ObservableWebSocketClient" ,
130+ package : " observable-websocket-client"
131+ )
132+ ]
133+ )
134134]
135135```
136136
0 commit comments