Skip to content

Commit

Permalink
Merge branch 'master' of github.com:chinloyal/pusher_client
Browse files Browse the repository at this point in the history
  • Loading branch information
chinloyal committed Jan 19, 2021
2 parents bc5cb76 + 2f90cae commit 5f41083
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ class ConnectionListener: ConnectionEventListener {
}
}

override fun onError(message: String, code: String, ex: Exception) {
override fun onError(message: String, code: String?, ex: Exception?) {
Handler(Looper.getMainLooper()).post {
try {
val connectionError = JSONObject(mapOf(
"message" to message,
"code" to code,
"exception" to ex.message
"exception" to ex?.message
))

debugLog("[ON_ERROR]: message: $message, code: $code")
Expand All @@ -57,4 +57,4 @@ class ConnectionListener: ConnectionEventListener {
}
}
}
}
}

0 comments on commit 5f41083

Please sign in to comment.