       NetworkStatusParameters.ssid.rawValue                : ssid
     ]
 
-    delegate?.context(self, didChangeNetworkStatus: jsonValue(networkStatus))
+    delegate?.context(self, didChangeNetworkStatus: jsonValue(networkStatus as AnyObject))
   }
 
   fileprivate func handleWillEnterBackground() {

                                                                  error: Error?) {
    let parameters = [
      "peerIdentifier" : identifier,
      "error" : error != nil ? errorDescription(error!) : NSNull()
    ]
    delegate?.context(self, didFailMultiConnectConnectionWith: jsonValue(parameters))
  }

  public init(serviceType: String) {

    wifiState = wifiEnabled ? .on : .off

    let bssid = ((wifiState == .on) && wifiConnected)
                ? networkReachability.bssid()
                : nil
    let ssid = ((wifiState == .on) && wifiConnected)
                ? networkReachability.ssid()
                : nil

    let networkStatus = [
      NetworkStatusParameters.wifi.rawValue                : wifiState.rawValue,
