long polling send data
receiving data
new version adaptions for long polling