Enumeration Case

URLSessionWebSocketTask.Message.string(_:)

A WebSocket message that contains a string.

Declaration

case string(String)

Discussion

The URLSessionWebSocketTask uses UTF-8 encoding to send the message’s string.

See Also

Message types

case data(Data)

A WebSocket message that contains a block of data.