'Method called when data is coming in over the websocket
connection. This is always a JSON object on the following
form:
[cmdname, [args], {kwargs}]'

def dataReceived(self, string):

    cmdarray = json.loads(string)
    if cmdarray:
        self.data_in(**{cmdarray[0]: [cmdarray[1], cmdarray[2]]})
