First of all, I want to say thanks to @adamhartford for giving us this amazing Signal R wrapper!
Alright, I’m really stuck with something here. I need to handle a response from my C# server that return an IEnumerable of Guid (IEnumerable). Here’s my code:
do {
if let hub = drawView.drawingHub {
try hub.invoke("AddStrokes", arguments: [[strokeDataDictionary]]) { (result, error) in
if let e = error {
print("Error: \(e)")
} else {
print("Success!")
if let r = result {
// Assing Stroke Is's...
// currentStroke.Id = result...
}
}
}
}
}
catch {
//handle error
print(error)
}
After trying couple of times, my code after the invoke is never getting called, even if my server returns an answer on is the side.
Does anyone have any advice? I know my server is working find on other C# clients. After debugging on the server side, I should correctly return a List of GUIDs. For debugging purposes, here’s my server code:
Hi! 😄
First of all, I want to say thanks to @adamhartford for giving us this amazing Signal R wrapper!
Alright, I’m really stuck with something here. I need to handle a response from my C# server that return an IEnumerable of Guid (IEnumerable). Here’s my code:
After trying couple of times, my code after the invoke is never getting called, even if my server returns an answer on is the side.
Does anyone have any advice? I know my server is working find on other C# clients. After debugging on the server side, I should correctly return a List of GUIDs. For debugging purposes, here’s my server code:
Does anyone have any idea?
Thank you very much!