Skip to content

Commit 7cf1b46

Browse files
committed
Make attempting to parse message as JSON the default
1 parent e4c5c36 commit 7cf1b46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/PusherChannel.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ open class PusherChannel: NSObject {
110110
*/
111111
open func handleEvent(name: String, data: String) {
112112
if let eventHandlerArray = self.eventHandlers[name] {
113-
let jsonize = connection?.options.attemptToReturnJSONObject ?? false
113+
let jsonize = connection?.options.attemptToReturnJSONObject ?? true
114114

115115
for eventHandler in eventHandlerArray {
116116
eventHandler.callback(jsonize ? connection?.getEventDataJSON(from: data) : data)

0 commit comments

Comments
 (0)