long poll server, web and native client