Alias for WebSocketServerProtocol `sendMessage` method

def send(self, payload, *args, **kwargs):
        """
        Alias for WebSocketServerProtocol `sendMessage` method
        """
        if isinstance(payload, (list, dict)):
            payload = json.dumps(payload)

        self.sendMessage(payload.encode(), *args, **kwargs)