WebSocketServer
public class WebSocketServer : WebSocketServerProtocol, WebSocketConnectionDelegate, @unchecked Sendable
WebSocketServer is a Network.framework implementation of a WebSocket server
-
Undocumented
Declaration
Swift
public var onEvent: (@Sendable (WebSocketServerEvent) -> Void)? -
Undocumented
Declaration
Swift
public var callbackQueue: DispatchQueue -
Undocumented
Declaration
Swift
public init() -
Undocumented
Declaration
Swift
public func start(address: String, port: UInt16) -> Error? -
Undocumented
Declaration
Swift
public func stop() -
Undocumented
Declaration
Swift
public func didReceive(event: WebSocketServerEvent)
View on GitHub