def _get_next_msgid(self):
self.ack_counter += <NUM_LIT:1><EOL>return self.ack_counter<EOL>
This retrieves the next value for the 'id' field when sending
        an 'event' or 'message' or 'json' that asks the remote client
        to 'ack' back, so that we trigger the local callback.