import freetime.entity.msg msgpack = freetime.entity.msg.MsgPack() data = {'id': 1, 'name': 'John'} msg = msgpack.pack(data) # Send the message to a destination
import freetime.entity.msg msgpack = freetime.entity.msg.MsgPack() # Receive the message from a source and store it in "raw_data" data = msgpack.unpack(raw_data) # Use the deserialized data for further processingThe `updateResult` message in the MsgPack format can be used to send status updates or results to a client or server. The package library used in these examples is `freetime.entity.msg`.