Instance Method

urlSession(_:writeClosedFor:)

Tells the delegate that the write side of the underlying socket has been closed.

Declaration

optional func urlSession(_ session: URLSession, writeClosedFor streamTask: URLSessionStreamTask)

Parameters

session

The session containing the stream task that closed writes.

streamTask

The stream task that closed writes.

Discussion

This method may be called even if no writes are currently in progress.

See Also

Handling Closing Events

func urlSession(URLSession, readClosedFor: URLSessionStreamTask)

Tells the delegate that the read side of the underlying socket has been closed.