We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A clear and concise description of what the bug is.
To handle the multiple socket connections using the dictionary
var webSockets: [String: (socket: WebSocket, status: Bool)] = [:]
After receiving connected status success then updating the dictionary with status true
func didReceive(event: WebSocketEvent, client: WebSocket) { switch event { case .connected(let headers): var socket = webSockets[client.request.url?.absoluteString ?? ""] let wssServerUrl = BUtility().getValueFromKeyChain(key: KeyConstant.kWssServerURL) if wssServerUrl == client.request.url?.absoluteString ?? "" { webSockets[client.request.url?.absoluteString ?? ""]?.status = true } } }
Now update the pod to 4.0.6 Then replaced the function with client
From the client or event how i can ge tthe url from the client func didReceive(event: WebSocketEvent, client: WebSocketClient) { }
Add any other context about the problem here. Suggestion: How to get socket from the client
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
To handle the multiple socket connections using the dictionary
var webSockets: [String: (socket: WebSocket, status: Bool)] = [:]
After receiving connected status success then updating the dictionary with status true
Now update the pod to 4.0.6
Then replaced the function with client
From the client or event how i can ge tthe url from the client
func didReceive(event: WebSocketEvent, client: WebSocketClient) {
}
Additional context
The text was updated successfully, but these errors were encountered: