def net_recv(ws, conn):
in_data = conn.recv(RECEIVE_BYTES)<EOL>if not in_data:<EOL><INDENT>print('<STR_LIT>')<EOL>ws.receive_data(None)<EOL><DEDENT>else:<EOL><INDENT>print('<STR_LIT>'.format(len(in_data)))<EOL>ws.receive_data(in_data)<EOL><DEDENT>
Read pending data from network into websocket.