Use one socket connection instead of AJAX posts