indaband / pusher_channels

A pure Dart implementation of the Pusher Channels Client
https://pusher.com/channels
MIT License
8 stars 3 forks source link

fix: parsing already parsed json #3

Closed nicobritos closed 7 months ago

nicobritos commented 2 years ago

Fix #2 checking if the payload is a String before trying to decode it as a JSON string.

andrewsmedina commented 2 years ago

Hi @nicobritos thanks for this contribution. What is the case that the server send a json instead a String? There is a way to reproduce or test it?