def _process(self, data):
try:<EOL><INDENT>packet = json.loads(data)<EOL><DEDENT>except ValueError:<EOL><INDENT>logger.warning('<STR_LIT>')<EOL>return<EOL><DEDENT>if packet['<STR_LIT>'] == '<STR_LIT>':<EOL><INDENT>self._run_command(packet)<EOL><DEDENT>elif packet['<STR_LIT>'] == '<STR_LIT>':<EOL><INDENT>self._pipeinput.send_text(packet['<STR_LIT:data>'])<EOL>
Process packet received from client.