WebSocketNativeEngine
public class WebSocketNativeEngine : NSObject, WebSocketEngineProtocol, URLSessionDataDelegate, URLSessionWebSocketDelegate, @unchecked Sendable
Undocumented
-
Undocumented
Declaration
Swift
public func register(delegate: WebSocketEngineDelegate) -
Undocumented
Declaration
Swift
public func start(request: URLRequest) -
Undocumented
Declaration
Swift
public func stop(closeCode: UInt16) -
Undocumented
Declaration
Swift
public func forceStop() -
Undocumented
Declaration
Swift
public func write(string: String, completion: (@Sendable () -> Void)?) -
Undocumented
Declaration
Swift
public func write(data: Data, opcode: WebSocketFrameOpCode, completion: (@Sendable () -> Void)?) -
Undocumented
Declaration
Swift
public func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didOpenWithProtocol protocol: String?) -
Undocumented
Declaration
Swift
public func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?) -
Undocumented
Declaration
Swift
public func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?)
View on GitHub