Skip to content

Commit

Permalink
reporting received data as soon as possible
Browse files Browse the repository at this point in the history
  • Loading branch information
aclima93 committed Apr 23, 2020
1 parent 0c46595 commit 186bc62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SignalR-Swift/Client/Hubs/HubConnection.swift
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ public class HubConnection: Connection, HubConnectionProtocol {

override public func didReceiveData(data: Any) {
guard let dict = data as? [String: Any] else { return }

super.didReceiveData(data: data)

if dict["I"] != nil {
let result = HubResult(jsonObject: dict)
Expand All @@ -95,8 +97,6 @@ public class HubConnection: Connection, HubConnectionProtocol {

hubProxy.invokeEvent(eventName: invocation.method, withArgs: invocation.args)
}

super.didReceiveData(data: data)
}

override public func willReconnect() {
Expand Down

0 comments on commit 186bc62

Please sign in to comment.