def send_STP0_message_to_client(self, command, msg): """send a message to the client""" if connections_waiting: connections_waiting.pop(0).return_scope_message_STP_0( (command, msg), self) else: scope_messages.append((command, msg))
def handle_stp1_msg_default(self, msg): if connections_waiting: connections_waiting.pop(0).return_scope_message_STP_1(msg, self) else: scope_messages.append(msg)