Patched to support messages from firebase longer than 16.0 kb