We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4c5c36 commit 7cf1b46Copy full SHA for 7cf1b46
Source/PusherChannel.swift
@@ -110,7 +110,7 @@ open class PusherChannel: NSObject {
110
*/
111
open func handleEvent(name: String, data: String) {
112
if let eventHandlerArray = self.eventHandlers[name] {
113
- let jsonize = connection?.options.attemptToReturnJSONObject ?? false
+ let jsonize = connection?.options.attemptToReturnJSONObject ?? true
114
115
for eventHandler in eventHandlerArray {
116
eventHandler.callback(jsonize ? connection?.getEventDataJSON(from: data) : data)
0 commit comments