Instance Methodswift-websocket 1.1.1WSCore
write(_:)
Write WebSocket frame
func write(_ frame: OutboundFrame) async throws
Write WebSocket frame
func write(_ frame: OutboundFrame) async throws
s6WSCore23WebSocketOutboundWriterV5writeyyAC0D5FrameOYaKF
What are these?7E9UG
import WSCore
struct WebSocketOutboundWriter
Outbound websocket writer
enum OutboundFrame
WebSocket frame that can be written
func close(_ closeCode: WebSocketErrorCode, reason: String?) async throws
Send close control frame.
func withBinaryMessageWriter<Value>(_ write: (inout MessageWriter) async throws -> Value) async throws -> Value
Write a single WebSocket binary message as a series of fragmented frames
func withTextMessageWriter<Value>(_ write: (inout MessageWriter) async throws -> Value) async throws -> Value
Write a single WebSocket text message as a series of fragmented frames
struct MessageWriter
Write WebSocket message as a series as frames