-
Notifications
You must be signed in to change notification settings - Fork 854
Open
Description
Hello,
could you add to the SocketEngine this code. The XCode has a problem without delegate compatibility during compilation and he does not respect the SocketEngine extension in line 762 for some reason.
public func didReceive(event: Starscream.WebSocketEvent, client _: Starscream.WebSocketClient) {
switch event {
case let .connected(headers):
wsConnected = true
client?.engineDidWebsocketUpgrade(headers: headers)
websocketDidConnect()
case .cancelled:
wsConnected = false
websocketDidDisconnect(error: EngineError.canceled)
case let .disconnected(reason, code):
wsConnected = false
websocketDidDisconnect(error: nil)
case let .text(msg):
parseEngineMessage(msg)
case let .binary(data):
parseEngineData(data)
case _:
break
}
}
loopingGIT
Metadata
Metadata
Assignees
Labels
No labels