def _send_packet(self, packet):
        """Sends <packet> (<dict>) to https://hack.chat."""
        encoded = json.dumps(packet)
        self.ws.send(encoded)
def _send_packet ( self , packet ) : encoded = json . dumps ( packet ) self . ws . send ( encoded )
Sends <packet> (<dict>) to https://hack.chat.