Skip to content

Feature/pass on timeout#815

Open
sebohdev wants to merge 3 commits intodaltoniam:masterfrom
sebohdev:feature/pass_on_timeout
Open

Feature/pass on timeout#815
sebohdev wants to merge 3 commits intodaltoniam:masterfrom
sebohdev:feature/pass_on_timeout

Conversation

@sebohdev
Copy link

When setting a timeoutInterval for the URLRequest, so far it was not possible to handle this timeout exception.

Example Code:

var request = URLRequest(url: URL(string: "ws://localhost:8080/")!)
request.timeoutInterval = 5 // Sets the timeout for the connection

A new event 'timedout' is introduced to handle this scenario.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant