WebSockets are much faster than AJAX for client-server communication. AJAX requests are pull-only. The browser must make a request, which then must resolve via a DNS to be routed to a server which responds with data. Information is only exchanged when the browser requests it. WebSockets provide a direct connection to a server which can send data to the browser instantly with no request from the browser. This allows for “push” notifications.
Tony Thomas is a father, husband, musician and web developer at Student Unions and Activities at the University of Minnesota. He has worked in web development for over 12 years. He has given many presentations on web development topics to groups like the Minneapolis/St. Paul WordPress User Group, the University of Minnesota Web Standards and Code People Groups and presented at MinneWebCon in 2011 and 2012. He has covered topics like mobile web development, project tools for web development, and the Git Flow process for the SUA web team workflow.