The message field in PubNub's publish method can contain any JSON serializable data, including:
- Numbers - 1, 2, 3...
Make sure you do not send special Python classes or functions. These will not serialize. String content can include any UTF-8 character single-byte and multi-byte.
IMPORTANT: Do NOT serialize the JSON. Send the JSON object as is and PubNub will serialize and deserialize it for you. Binary data must be base64 encoded first. All messages are limited to 32KB.