์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
- ํจ์คํธ์บ ํผ์ค
- tableView
- designpattern
- node.js
- swift
- Xcode
- realm
- ๋ฐฑ์ค
- UIKit
- Flutter
- CollectionView
- SwiftUI
- rxcocoa
- RxSwift
- BFS
- ios
- MVVM
- BOJ
- reactorkit
- Kuring
- TCA
- SnapKit
- arkit
- Swfit
- raywenderlich
- ํ๋ก๊ทธ๋๋จธ์ค
- Lv2
- combine
- XCTest
- visionOS
- Today
- Total
๋ชฉ๋กStarscream (3)
lgvv98
[TCA] Effect #6 (WebSocket) ๋ชฉ์ฐจ - ์ด๋ฒ์ ํ ์ค์ต์ ๋ํ ์ค๋ช - ์น์์ผ ๊ฐ๋ ์ ๋ํด์ ์ค๋ช ์ ์๋ต - ๋์ ์ด์ ์์ ์์์ ์น์์ผ๊ณผ ์ฐ๊ด์ง์ด ์๊ฐํด๋ณด๊ธฐ - TCA WebScoket ์์ # ์ด๋ฒ์ ํ ์ค์ต์ ๋ํ ์ค๋ช URLsession์ ์น์์ผ์ฉ API๋ฅผ ์ํ ๊ฐ๋จํ Wrapper๋ฅผ ๋ง๋ค์ด ์์ผ ์๋ฒ์ ์ ์ํ์ฌ ํ ์คํธํ ํ ๋ฉ์์ง๋ฅผ ์ ์ก ํ ์์ผ ์๋ฒ๋ ์ฆ์ ๋ฉ์์ง๋ฅผ ํด๋ผ์ด์ธํธ์๊ฒ ํ์ . - ๋์ ์ด์ ์์ ์์์ ์น์์ผ๊ณผ ์ฐ๊ด์ง์ด ์๊ฐํด๋ณด๊ธฐ ๋ด๊ฐ ๊ฐ๋ฐ์ ์ฒ์ ๊ณต๋ถํ ๋น์์๋ ์น์์ผ์ ์ด๋ ๊ฒ ๋ง์ด ๋ค๋ฃจ๋ฆฌ๋ผ๊ณ ์๊ฐํ์ง ๋ชปํ๋๋ฐ, ๋ฉ์ธ์ผ๋ก ์ฌ์ฉํ๊ณ ์์. ์ฒ์ ์ด๋ก ์ด ์๋ ์น์์ผ์ ์ ํ๊ฒ ๋ ๊ฒ์ Kuringํ๋ก์ ํธ์์ ๊ฒ์ํํธ๋ฅผ ๊ตฌํํ๋ฉด์ ์ฒ์ ์๊ฒ ๋์๋๋ฐ, ๋น์์๋ StarS..
โ ์ด๋ฒ์๊ฐ์๋ WebSocket์ด๋ Starscream์ RxDelegateProxy๋ก ๋ง๋๋ ์ฝ๋๋ฅผ ๋ณต์ตํ ์์ ์ด์ผ. RxStarscream์ ๊ฒฝ์ฐ๋ ๊ด๋ฆฌ๊ฐ ๋๊ณ ์์ง ์์์ ์ด๋ฅผ ์ฌ์ฉํ ๊ฒฝ์ฐ rx์ ๋ฒ์ ์ 3.x๋ก ๋ด๋ ค๊ฐ๊ฒ ๋๋ฉด์ rx ์์ฒด๋ฅผ ์ ๋๋ก ์ฌ์ฉํ ์ ์๊ธฐ์ ์ด ๋ถ๋ถ์ Proxy๋ก ์ปค์คํ ํด์ ์ฌ์ฉํด์ผ๋ง ํ์ด. โ๏ธ ํ๊ฒฝ Xcode 13.0 Swift 5 Pod - Differentiator (3.1.0) - RxCocoa (4.5.0): - RxSwift (>= 4.4.2, ~> 4.4) - RxDataSources (3.1.0): - Differentiator (~> 3.0) - RxCocoa (~> 4.0) - RxSwift (~> 4.0) - RxSwift (4.5.0) - SnapK..
โ ์ด๋ฒ ์๊ฐ์๋ starscream์ฌ์ฉ๋ฒ์ ๋ํด์ ์์๋ณผ ์์ ์ด์ผ. ์ง๋ ์๊ฐ์ RxStarscream์ ๊ณต๋ถํ์๋๋ฐ, ๊ถ๊ธํ๋ค๋ฉด ๊ฐ์ ์นดํ ๊ณ ๋ฆฌ์ ์๋ RxStarscream์ ๋ด๋ ์ข์. starscream์ด ๋ฌด์์ด๋๋ฉด websokcet์ ์กฐ๊ธ ๋ ํธ๋ฆฌํ๊ฒ ์ฌ์ฉํ ์ ์๊ฒ ๋์์ฃผ๋ ํ๋ ์์ํฌ๋ผ๊ณ ์๊ฐํ๋ฉด ๋ผ! โ starscream github https://github.com/daltoniam/Starscream GitHub - daltoniam/Starscream: Websockets in swift for iOS and OSX Websockets in swift for iOS and OSX. Contribute to daltoniam/Starscream development by creating..