Contents

URLSessionWebSocketTask.CloseCode.unsupportedData

A code that indicates an endpoint terminated the connection after receiving a type of data it can’t accept.

Declaration

case unsupportedData

Discussion

An endpoint that only accepts text may send this close code if it receives a binary message.

See Also

Close codes