(self, data)
Send (data) directly to the websocket.
Send (data) directly to the websocket.
Send ( data ) directly to the websocket .
def send_to_websocket(self, data):
        """Send (data) directly to the websocket."""
        data = json.dumps(data)
        self.websocket.send(data)
def send_to_websocket ( self , data ) : data = json . dumps ( data ) self . websocket . send ( data )