Created
May 30, 2025 06:35
-
-
Save jacobsapps/afb888b9a71e9ee69ea986fc5c9abaab to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Run `ipconfig getifaddr en0` to get IP address of the local server | |
| // Simulators or paired iPhones don't share localhost with your Mac | |
| private init(endpoint: String) { | |
| let url = URL(string: "ws://192.168.0.16:8000")?.appendingPathComponent(endpoint) | |
| setupWebSocket(url: url!) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment