def dataReceived(self, data):
<INDENT>print "<STR_LIT>" % data<EOL><DEDENT>msg = stomper.unpack_frame(data)<EOL>returned = self.sm.react(msg)<EOL><INDENT>print "<STR_LIT>" % returned<EOL><DEDENT>if returned:<EOL><INDENT>self.transport.write(returned)<EOL><DEDENT>
Data received, react to it and respond if needed.