🆚 WebSocket vs. XMLHttpRequest

Compare technologies based on real-world usage data *

Type

Browser API
Browser API

About

The WebSocket API enables full-duplex communication between a web browser and a web server.

XMLHttpRequest (XHR) is a JavaScript API to create HTTP requests.

Headquarters

Fremont, California, United States
Cambridge, Massachusetts, United States

Website

Categories

Browser APIs › Rank #7
Browser APIs › Rank #2

Popularity

Determined by the number of sites using each technology.

The XMLHttpRequest browser API is 9 times more popular than WebSocket.
Total websites

Market share

Browser APIs

Popularity by country

Determined by the number of sites detected from each country.

XMLHttpRequest is more popular in the United States, Germany, and the United Kingdom, while WebSocket is more popular in San Marino.
United States
Germany
United Kingdom
Russia
Canada
Australia
France
India
Netherlands
Japan

Awards

Popularity by domain category

Determined by the number of sites in each category.

XMLHttpRequest is more popular than WebSocket in all market segments.
Online Shopping
Business
Marketing/Merchandising
Fashion/Beauty
Blogs/Wiki
Education/Reference
Internet Services
Entertainment
Health
Travel

Top sites

Top-ranked sites that use these technologies.

Name
Rank
#12
View more ➝
Name
Rank
p**nhub.com
#26
#39
View more ➝

See also

* According to recent studies, many of online reviews are fake.
When making your decision, it is better to rely on data that cannot be falsified.
Our service evaluates the popularity of technologies by the number of websites using them.

Statistics were last calculated on .
For details, see our methodology and disclaimer.