def _onMessage(self, ws, message):
try:<EOL><INDENT>data = json.loads(message)['<STR_LIT>']<EOL>log.debug('<STR_LIT>', *data)<EOL>if self._callback:<EOL><INDENT>self._callback(data)<EOL><DEDENT><DEDENT>except Exception as err:  <EOL><INDENT>log.error('<STR_LIT>', err)<EOL><DEDENT>
Called when websocket message is recieved.