Instance Propertyswift-websocket 1.1.1WSClient
validateUTF8
Should text be validated to be UTF8
var validateUTF8: Bool
Should text be validated to be UTF8
var validateUTF8: Bool
s8WSClient28WebSocketClientConfigurationV12validateUTF8Sbvp
What are these?492BO
import WSClient
struct WebSocketClientConfiguration
Configuration for a client connecting to a WebSocket
@frozen struct Bool
A value type whose instances are either true
or false
.
init(maxFrameSize: Int = (1 << 14), additionalHeaders: HTTPFields = .init(), extensions: [WebSocketExtensionFactory] = [], autoPing: AutoPingSetup = .disabled, validateUTF8: Bool = false)
Initialize WebSocketClient configuration
var additionalHeaders: HTTPFields
Additional headers to be sent with the initial HTTP request
var autoPing: AutoPingSetup
Automatic ping setup
var extensions: [any WebSocketExtensionBuilder]
WebSocket extensions
var maxFrameSize: Int
Max websocket frame size that can be sent/received