Telegraph
Telegraph copied to clipboard
Secure Web Server for iOS, tvOS and macOS
allows something like the following let info = MyCodableClass() let response = HTTPResponse(encodable:info) this will return a json body with the content type header set
Hello, I have this simple code to handle head requests: ```swift func startServer(port: Int) -> Error? { do { if server.isRunning { return nil } try server.start(port: port) server.webSocketDelegate =...
My iOS application provides a long mjpeg stream on web server. Because of HTTPConfig.readTimeout, the stream will stop when the time reaches HTTPConfig.readTimeout. Currently, I have to change HTTPConfig.readTimeout to...
Let's say we want to stream a mp4 to the client, the file is big, how to use Telegraph to stream it?
I followed the docs, expecting me to reference my `Bundle.main.resourceURL/Demo` directory; but `Bundle.main.url(forResource: "Demo", withExtension: nil)` returns nil; Search for issues and find `URL(string: "Demo", relativeTo:Bundle.main.resourceURL)`, but it cannot be...
Telegraph uses CocoaAsyncSocket that [internally uses](https://github.com/robbiehanson/CocoaAsyncSocket/blob/master/Source/GCD/GCDAsyncSocket.h#L13) [SecureTransport framework](https://developer.apple.com/documentation/security/secure_transport) (for TLS support) that is deprecated since iOS 13 in favour of [Network framework](https://developer.apple.com/documentation/network). Apple may accidentally drop SecureTransport framework from iOS...
Hello all What happens to Telegraph when app goes in background and then returns in foreground? Will server be still alive? I've tried with some Adobe Animate generated html+js code,...
I was wondering how I can verify that the server is totally up and running after resuming from being backgrounded or from startup. Right now I'm trying to locally run...