def handle(client_message, handle_event_item=None, to_object=None):
message_type = client_message.get_message_type()<EOL>if message_type == EVENT_ITEM and handle_event_item is not None:<EOL><INDENT>item = None<EOL>if not client_message.read_bool():<EOL><INDENT>item = client_message.read_data()<EOL><DEDENT>uuid = client_message.read_str()<EOL>event_type = client_message.read_int()<EOL>handle_event_item(item=item, uuid=uuid, event_type=event_type)<EOL><DEDENT>
Event handler