I use to develop for IOS and currently handling MacOS development for the first time. I use websocket in my app before acting as clients. However, I never had to make a websocket server using swift.
I was wondering if it is possible to let my Mac App to act as a web socket server to receive informations from web socket clients? I have been trying to find resources, but most of them are about making clients instead of server. I would appreciate any help on finding resources to help me build this feature.
Thank you
thank you I will look at these
Network framework is covered in the following WWDC sessions (which I'm rewatching as about to start work on the network server part of an app):
- Introducing Network.framework: A modern alternative to Sockets: https://developer.apple.com/videos/play/wwdc2018/715/
- Advances in Networking, Part 1: https://developer.apple.com/videos/play/wwdc2019/712/ (introduces NWProtocolWebSocket)
- Advances in Networking, Part 2: https://developer.apple.com/videos/play/wwdc2019/713/ (introduces NWProtocolWebSocket)
- Boost performance and security with modern networking: https://developer.apple.com/videos/play/wwdc2020/10111
- Accelerate networking with HTTP/3 and QUIC: https://developer.apple.com/videos/play/wwdc2021/10094
- Build device-to-device interactions with Network Framework: https://developer.apple.com/videos/play/wwdc2022/110339/