You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After signed up with connect but nothing comes up if spring sends with this command (convertAndSendToUser), although an Android client the message comes without problems.
Hello @Gensjava,
I'm glad to hear that you solved your problem. Can you please tell us how could you solve your problem? If someone also has the same problem.
I found that I started a double of a web socket, and two names came to the server and there was a confusion. With class Principal, I was able to get a login connection and manage it.
But part of the problem is still there. I do not understand how you can subscribe to two or more addresses I do not use the web socket connection again
var socketClient = StompClientLib()
let url = NSURL(string: "your-socket-url-is-here")!
socketClient.openSocketWithURLRequest(request: NSURLRequest(url: url as URL) delegate: self)
I'd like to have one connection (the WebSocket is connected) and I have about 10 topics in various places in the program and I need to receive messages on this topic. I don't understand how to build a structure.
After signed up with connect but nothing comes up if spring sends with this command (convertAndSendToUser), although an Android client the message comes without problems.
override func stompClientDidConnect(client: StompClientLib!) {
super.stompClientDidConnect(client: client)
socketClient.subscribe(destination: "/user/topic/gps/list-riders")
}
override func stompClient(client: StompClientLib!, didReceiveMessageWithJSONBody jsonBody: AnyObject?, withHeader header: [String : String]?, withDestination destination: String) {
Empty??????
}
The text was updated successfully, but these errors were encountered: