Open notepad depending data come from server to client