SwiftSocket
swift-nio
Our great sponsors
SwiftSocket | swift-nio | |
---|---|---|
1 | 6 | |
1,541 | 6,959 | |
1.3% | 0.8% | |
0.0 | 8.8 | |
17 days ago | 3 days ago | |
Swift | Swift | |
BSD 3-clause "New" or "Revised" License | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
SwiftSocket
-
Is there a reliable swift package for running a tcp connection from an ios app ?
I managed to make it kind of work with CFStreamCreatePairWithSocketToHost but it seems to be deprecated. SwiftSocket looks to be a good solution too but at this point I'm not very sure what to do or what to use.
swift-nio
-
What is the simplest way to have local http server in iOS app?
I would look at NIO or something that uses it, like https://diamantidis.github.io/2019/10/27/swift-nio-server-in-an-ios-app
-
Update app from external source (maybe?)
i use swiftnio to spin up http servers. lots of documentation online. your app logic will be the same as ios but without swiftui and uikit.
-
Any tutorials you recommend for URLSession?
Depending on what you need, SwiftNIO might do the trick.
-
Is there a reliable swift package for running a tcp connection from an ios app ?
If you want something a little more robust for a low-level TCP connection, you can also use SwiftNIO.
-
Using Swift, Vapor, and MongoDB for applications
Our example application is fully async and uses SwiftNIO, and has a REST API interface.
-
Async/Await in Swift – Rethinking Callbacks and Escaping the Pyramid of Doom
SwiftNIO has a draft PR already up: https://github.com/apple/swift-nio/pull/1701
What are some alternatives?
Socket.IO
Starscream - Websockets in swift for iOS and OSX
BlueSocket - Socket framework for Swift using the Swift Package Manager. Works on iOS, macOS, and Linux.
Socks - 🔌 Non-blocking TCP socket layer, with event-driven server and client.
SocketRocket
SwiftWebSocket
WebSocket - WebSocket implementation for use by Client and Server
Zewo - Lightweight library for web server applications in Swift on macOS and Linux powered by coroutines.
mongodb-vapor - MongoDB + Vapor integration
Swift-Atem - Blackmagic Design Atem network protocol implementation in swift 5.1 using NIO 2
Alamofire - Elegant HTTP Networking in Swift
EnumKit - EnumKit is a library that gives you the ability to simply access an enum associated value, without having to use pattern matching. It also offers many utilities available to other swift types, like updatability of an associated value and transformations.