'Called when a WebSocket frame is received. Decodes it and passes it
to receive().'

def raw_receive(self, message, **kwargs):

    if ('text' in message):
        self.receive(text=message['text'], **kwargs)
    else:
        self.receive(bytes=message['bytes'], **kwargs)
