-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Request for a simple example of passing these parameters GCDWebServerOption_AutomaticallySuspendInBackground and GCDWebServerOption_ConnectedStateCoalescingInterval #333
Comments
Use one of the |
Dear @swisspol, I understand that these concepts are very easy for you. On the other hand anyone with little knowledge can't make heads or tails with it. I don't know why but creating the options like that is giving compile errors. Isn't it possible inject these changes later? A simple code sample just puts I've come across the same question on Internet many times. If we can clarify this, it will be helpful for many others. Also I'm looking for iOS examples. Thank you for your patience. |
Hi @swisspol , Here is the error I'm getting from your example because the example is for Mac but I'm compiling for iOS, can you help me please? Why is it that
|
Hi @swisspol , From the documents, it looks like runWithOptions can't be used on iOS, it is designed for command line use. What do we do to pass the options if we are compiling for iOS?
|
I figured it out, how difficult was it to include this as an example on the readme page I wonder... Btw, it was not
|
Hi @swisspol ,
I've read all the documentation but couldn't find a code example of how to set the
GCDWebServerOption_AutomaticallySuspendInBackground
toNO
For example, is there an easy way to include it here:
[_webServer startWithPort:8080 bonjourName:nil];
no matter what I tried I've been getting compile errors.Also it would be nice to learn how to enable this in the
GCDWebUploader
modeOf course all above is true for the elusive
GCDWebServerOption_ConnectedStateCoalescingInterval
setting which is related to running in the background.I do appreciate for all the time you have spent for this great project, thank you! 👍
The text was updated successfully, but these errors were encountered: