def get_receive_message(self, data):
self.order += <NUM_LIT:1><EOL>message = {<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': None,<EOL>'<STR_LIT:path>': self.path,<EOL>'<STR_LIT>': self.order,<EOL>'<STR_LIT:text>': None,<EOL>'<STR_LIT>': None,<EOL>}<EOL>if isinstance(data, str):<EOL><INDENT>message['<STR_LIT:text>'] = data<EOL><DEDENT>elif isinstance(data, bytes):<EOL><INDENT>message['<STR_LIT>'] = data<EOL><DEDENT>return message<EOL>
http://channels.readthedocs.io/en/stable/asgi/www.html#receive