René's URL Explorer Experiment


Title: WebSocket API (WebSockets) - Web APIs | MDN

Open Graph Title: WebSocket API (WebSockets) - Web APIs | MDN

Description: The WebSocket API makes it possible to open a two-way interactive communication session between the user's browser and a server. With this API, you can send messages to a server and receive responses without having to poll the server for a reply.

Open Graph Description: The WebSocket API makes it possible to open a two-way interactive communication session between the user's browser and a server. With this API, you can send messages to a server and receive responses without having to poll the server for a reply.

Opengraph URL: https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API

direct link

Domain: developer.mozilla.org

og:localeen_US
og:imagehttps://developer.mozilla.org/mdn-social-image.46ac2375.png
og:image:typeimage/png
og:image:height1024
og:image:width1024
og:image:altThe MDN logo
og:site_nameMDN Web Docs
twitter:cardsummary
twitter:creatorMozDevNet
position3

Links:

Skip to main contenthttps://developer.mozilla.org/docs/Web/API/WebSockets_API#content
Skip to searchhttps://developer.mozilla.org/docs/Web/API/WebSockets_API#mdn-search
MDN https://developer.mozilla.org/en-US/
HTML: Markup languagehttps://developer.mozilla.org/en-US/docs/Web/HTML
Elementshttps://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements
Global attributeshttps://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Global_attributes
Attributeshttps://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Attributes
See all…https://developer.mozilla.org/en-US/docs/Web/HTML/Reference
Responsive imageshttps://developer.mozilla.org/en-US/docs/Web/HTML/Guides/Responsive_images
HTML cheatsheethttps://developer.mozilla.org/en-US/docs/Web/HTML/Guides/Cheatsheet
Date & time formatshttps://developer.mozilla.org/en-US/docs/Web/HTML/Guides/Date_and_time_formats
See all…https://developer.mozilla.org/en-US/docs/Web/HTML/Guides
SVGhttps://developer.mozilla.org/en-US/docs/Web/SVG
MathMLhttps://developer.mozilla.org/en-US/docs/Web/MathML
XMLhttps://developer.mozilla.org/en-US/docs/Web/XML
CSS: Styling languagehttps://developer.mozilla.org/en-US/docs/Web/CSS
Propertieshttps://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Properties
Selectorshttps://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Selectors
At-ruleshttps://developer.mozilla.org/en-US/docs/Web/CSS/Reference/At-rules
Valueshttps://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values
See all…https://developer.mozilla.org/en-US/docs/Web/CSS/Reference
Box modelhttps://developer.mozilla.org/en-US/docs/Web/CSS/Guides/Box_model/Introduction
Animationshttps://developer.mozilla.org/en-US/docs/Web/CSS/Guides/Animations/Using
Flexboxhttps://developer.mozilla.org/en-US/docs/Web/CSS/Guides/Flexible_box_layout/Basic_concepts
Colorshttps://developer.mozilla.org/en-US/docs/Web/CSS/Guides/Colors/Applying_color
See all…https://developer.mozilla.org/en-US/docs/Web/CSS/Guides
Column layoutshttps://developer.mozilla.org/en-US/docs/Web/CSS/How_to/Layout_cookbook/Column_layouts
Centering an elementhttps://developer.mozilla.org/en-US/docs/Web/CSS/How_to/Layout_cookbook/Center_an_element
Card componenthttps://developer.mozilla.org/en-US/docs/Web/CSS/How_to/Layout_cookbook/Card
See all…https://developer.mozilla.org/en-US/docs/Web/CSS/How_to/Layout_cookbook
JavaScript: Scripting languagehttps://developer.mozilla.org/en-US/docs/Web/JavaScript
Standard built-in objectshttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects
Expressions & operatorshttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators
Statements & declarationshttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements
Functionshttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions
See all…https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference
Control flow & error handlinghttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Control_flow_and_error_handling
Loops and iterationhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Loops_and_iteration
Working with objectshttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Working_with_objects
Using classeshttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Using_classes
See all…https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide
Web APIs: Programming interfaceshttps://developer.mozilla.org/en-US/docs/Web/API
File system APIhttps://developer.mozilla.org/en-US/docs/Web/API/File_System_API
Fetch APIhttps://developer.mozilla.org/en-US/docs/Web/API/Fetch_API
Geolocation APIhttps://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API
HTML DOM APIhttps://developer.mozilla.org/en-US/docs/Web/API/HTML_DOM_API
Push APIhttps://developer.mozilla.org/en-US/docs/Web/API/Push_API
Service worker APIhttps://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API
See all…https://developer.mozilla.org/en-US/docs/Web/API
Using the Web animation APIhttps://developer.mozilla.org/en-US/docs/Web/API/Web_Animations_API/Using_the_Web_Animations_API
Using the Fetch APIhttps://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch
Working with the History APIhttps://developer.mozilla.org/en-US/docs/Web/API/History_API/Working_with_the_History_API
Using the Web speech APIhttps://developer.mozilla.org/en-US/docs/Web/API/Web_Speech_API/Using_the_Web_Speech_API
Using web workershttps://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers
All web technologyhttps://developer.mozilla.org/en-US/docs/Web
Accessibilityhttps://developer.mozilla.org/en-US/docs/Web/Accessibility
HTTPhttps://developer.mozilla.org/en-US/docs/Web/HTTP
URIhttps://developer.mozilla.org/en-US/docs/Web/URI
Web extensionshttps://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions
WebAssemblyhttps://developer.mozilla.org/en-US/docs/WebAssembly
WebDriverhttps://developer.mozilla.org/en-US/docs/Web/WebDriver
See all…https://developer.mozilla.org/en-US/docs/Web
Mediahttps://developer.mozilla.org/en-US/docs/Web/Media
Performancehttps://developer.mozilla.org/en-US/docs/Web/Performance
Privacyhttps://developer.mozilla.org/en-US/docs/Web/Privacy
Securityhttps://developer.mozilla.org/en-US/docs/Web/Security
Progressive web appshttps://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps
Learn web developmenthttps://developer.mozilla.org/en-US/docs/Learn_web_development
Getting started moduleshttps://developer.mozilla.org/en-US/docs/Learn_web_development/Getting_started
Core moduleshttps://developer.mozilla.org/en-US/docs/Learn_web_development/Core
MDN Curriculumhttps://developer.mozilla.org/en-US/curriculum/
Check out the video course from Scrimba, our partnerhttps://scrimba.com/frontend-path-c0j?via=mdn-learn-navbar
Structuring content with HTML modulehttps://developer.mozilla.org/en-US/docs/Learn_web_development/Core/Structuring_content
CSS styling basics modulehttps://developer.mozilla.org/en-US/docs/Learn_web_development/Core/Styling_basics
CSS layout modulehttps://developer.mozilla.org/en-US/docs/Learn_web_development/Core/CSS_layout
Dynamic scripting with JavaScript modulehttps://developer.mozilla.org/en-US/docs/Learn_web_development/Core/Scripting
Playgroundhttps://developer.mozilla.org/en-US/play
HTTP Observatoryhttps://developer.mozilla.org/en-US/observatory
Border-image generatorhttps://developer.mozilla.org/en-US/docs/Web/CSS/Guides/Backgrounds_and_borders/Border-image_generator
Border-radius generatorhttps://developer.mozilla.org/en-US/docs/Web/CSS/Guides/Backgrounds_and_borders/Border-radius_generator
Box-shadow generatorhttps://developer.mozilla.org/en-US/docs/Web/CSS/Guides/Backgrounds_and_borders/Box-shadow_generator
Color format converterhttps://developer.mozilla.org/en-US/docs/Web/CSS/Guides/Colors/Color_format_converter
Color mixerhttps://developer.mozilla.org/en-US/docs/Web/CSS/Guides/Colors/Color_mixer
Shape generatorhttps://developer.mozilla.org/en-US/docs/Web/CSS/Guides/Shapes/Shape_generator
About MDNhttps://developer.mozilla.org/en-US/about
Advertise with ushttps://developer.mozilla.org/en-US/advertising
Communityhttps://developer.mozilla.org/en-US/community
MDN on GitHubhttps://github.com/mdn
Bloghttps://developer.mozilla.org/en-US/blog/
Webhttps://developer.mozilla.org/en-US/docs/Web
Web APIshttps://developer.mozilla.org/en-US/docs/Web/API
WebSocket API (WebSockets)https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API
https://github.com/orgs/mdn/discussions/739
https://developer.mozilla.org/de/docs/Web/API/WebSockets_API
https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API
https://developer.mozilla.org/es/docs/Web/API/WebSockets_API
https://developer.mozilla.org/fr/docs/Web/API/WebSockets_API
https://developer.mozilla.org/ja/docs/Web/API/WebSockets_API
https://developer.mozilla.org/ko/docs/Web/API/WebSockets_API
https://developer.mozilla.org/pt-BR/docs/Web/API/WebSockets_API
https://developer.mozilla.org/ru/docs/Web/API/WebSockets_API
https://developer.mozilla.org/zh-CN/docs/Web/API/WebSockets_API
https://developer.mozilla.org/zh-TW/docs/Web/API/WebSockets_API
See full compatibility https://developer.mozilla.org/docs/Web/API/WebSockets_API#browser_compatibility
Learn more https://developer.mozilla.org/en-US/docs/Glossary/Baseline/Compatibility
Web Workershttps://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API
backpressurehttps://developer.mozilla.org/en-US/docs/Web/API/Streams_API/Concepts#backpressure
WebTransport APIhttps://developer.mozilla.org/en-US/docs/Web/API/WebTransport_API
WebSocketStreamhttps://developer.mozilla.org/en-US/docs/Web/API/WebSocketStream
bfcachehttps://developer.mozilla.org/en-US/docs/Glossary/bfcache
working with the bfcachehttps://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API/Writing_WebSocket_client_applications#working_with_the_bfcache
Interfaceshttps://developer.mozilla.org/docs/Web/API/WebSockets_API#interfaces
Related HTTP headershttps://developer.mozilla.org/docs/Web/API/WebSockets_API#related_http_headers
Guideshttps://developer.mozilla.org/docs/Web/API/WebSockets_API#guides
Toolshttps://developer.mozilla.org/docs/Web/API/WebSockets_API#tools
Specificationshttps://developer.mozilla.org/docs/Web/API/WebSockets_API#specifications
Browser compatibilityhttps://developer.mozilla.org/docs/Web/API/WebSockets_API#browser_compatibility
See alsohttps://developer.mozilla.org/docs/Web/API/WebSockets_API#see_also
Interfaceshttps://developer.mozilla.org/docs/Web/API/WebSockets_API#interfaces
WebSockethttps://developer.mozilla.org/en-US/docs/Web/API/WebSocket
WebSocketStreamhttps://developer.mozilla.org/en-US/docs/Web/API/WebSocketStream
streamshttps://developer.mozilla.org/en-US/docs/Web/API/Streams_API
CloseEventhttps://developer.mozilla.org/en-US/docs/Web/API/CloseEvent
MessageEventhttps://developer.mozilla.org/en-US/docs/Web/API/MessageEvent
Related HTTP headershttps://developer.mozilla.org/docs/Web/API/WebSockets_API#related_http_headers
WebSocket handshakehttps://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API/Writing_WebSocket_servers#the_websocket_handshake
Sec-WebSocket-Keyhttps://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Sec-WebSocket-Key
noncehttps://developer.mozilla.org/en-US/docs/Glossary/Nonce
WebSocket opening handshakehttps://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API/Writing_WebSocket_servers#the_websocket_handshake
Sec-WebSocket-Accepthttps://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Sec-WebSocket-Accept
response headerhttps://developer.mozilla.org/en-US/docs/Glossary/Response_header
Sec-WebSocket-Versionhttps://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Sec-WebSocket-Version
Sec-WebSocket-Protocolhttps://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Sec-WebSocket-Protocol
Sec-WebSocket-Extensionshttps://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Sec-WebSocket-Extensions
Guideshttps://developer.mozilla.org/docs/Web/API/WebSockets_API#guides
Writing WebSocket client applicationshttps://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API/Writing_WebSocket_client_applications
Writing WebSocket servershttps://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API/Writing_WebSocket_servers
Writing a WebSocket server in C#https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API/Writing_WebSocket_server
Writing a WebSocket server in Javahttps://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API/Writing_a_WebSocket_server_in_Java
Writing a WebSocket server in JavaScript (Deno)https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API/Writing_a_WebSocket_server_in_JavaScript_Deno
Using WebSocketStream to write a clienthttps://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API/Using_WebSocketStream
Toolshttps://developer.mozilla.org/docs/Web/API/WebSockets_API#tools
AsyncAPIhttps://www.asyncapi.com/
why you should consider using AsyncAPI with WebSockethttps://www.asyncapi.com/blog/websocket-part1
how to do sohttps://www.asyncapi.com/blog/websocket-part2
µWebSocketshttps://github.com/uNetworking/uWebSockets
C++11https://isocpp.org/
Node.jshttps://nodejs.org/
Socket.IOhttps://socket.io/
Node.jshttps://nodejs.org/
SocketClusterhttps://socketcluster.io/
Node.jshttps://nodejs.org/
WebSocket-Nodehttps://github.com/theturtle32/WebSocket-Node
Node.jshttps://nodejs.org/
Total.jshttps://www.totaljs.com/
Node.jshttps://nodejs.org/en
WebSocket chathttps://github.com/totaljs/examples/tree/master/websocket
SignalRhttps://dotnet.microsoft.com/en-us/apps/aspnet/signalr
Caddyhttps://caddyserver.com/
wshttps://github.com/websockets/ws
Node.jshttps://nodejs.org/en
cowboyhttps://github.com/ninenines/cowboy
ZeroMQhttps://zeromq.org/
WebSocket Kinghttps://websocketking.com/
PHP WebSocket Serverhttps://github.com/napengam/phpWebSocketServer
Django Channelshttps://channels.readthedocs.io/en/stable/index.html
(Phoenix) Channelshttps://phoenix.hexdocs.pm/channels.html
Phoenix LiveViewhttps://github.com/phoenixframework/phoenix_live_view
Flask-SocketIOhttps://flask-socketio.readthedocs.io/en/latest/
Gorilla WebSockethttps://pkg.go.dev/github.com/gorilla/websocket
Gohttps://go.dev/
Specificationshttps://developer.mozilla.org/docs/Web/API/WebSockets_API#specifications
WebSockets# the-websocket-interfacehttps://websockets.spec.whatwg.org/#the-websocket-interface
Browser compatibilityhttps://developer.mozilla.org/docs/Web/API/WebSockets_API#browser_compatibility
See alsohttps://developer.mozilla.org/docs/Web/API/WebSockets_API#see_also
RFC 6455 — The WebSocket Protocolhttps://datatracker.ietf.org/doc/html/rfc6455
WebSocket API Specificationhttps://websockets.spec.whatwg.org/
Server-Sent Eventshttps://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events
Learn how to contributehttps://developer.mozilla.org/en-US/docs/MDN/Community/Getting_started
MDN contributorshttps://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API/contributors.txt
View this page on GitHubhttps://github.com/mdn/content/blob/main/files/en-us/web/api/websockets_api/index.md?plain=1
Report a problem with this contenthttps://github.com/mdn/content/issues/new?template=page-report.yml&mdn-url=https%3A%2F%2Fdeveloper.mozilla.org%2Fen-US%2Fdocs%2FWeb%2FAPI%2FWebSockets_API&metadata=%3C%21--+Do+not+make+changes+below+this+line+--%3E%0A%3Cdetails%3E%0A%3Csummary%3EPage+report+details%3C%2Fsummary%3E%0A%0A*+Folder%3A+%60en-us%2Fweb%2Fapi%2Fwebsockets_api%60%0A*+MDN+URL%3A+https%3A%2F%2Fdeveloper.mozilla.org%2Fen-US%2Fdocs%2FWeb%2FAPI%2FWebSockets_API%0A*+GitHub+URL%3A+https%3A%2F%2Fgithub.com%2Fmdn%2Fcontent%2Fblob%2Fmain%2Ffiles%2Fen-us%2Fweb%2Fapi%2Fwebsockets_api%2Findex.md%0A*+Last+commit%3A+https%3A%2F%2Fgithub.com%2Fmdn%2Fcontent%2Fcommit%2F4f62576d552b13a897c03ae8d4caeb58ccd01392%0A*+Document+last+modified%3A+2026-10-22T11%3A00%3A18.000Z%0A%0A%3C%2Fdetails%3E
WebSocket API (WebSockets)https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API
Writing WebSocket client applicationshttps://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API/Writing_WebSocket_client_applications
Writing WebSocket servershttps://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API/Writing_WebSocket_servers
Writing a WebSocket server in C#https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API/Writing_WebSocket_server
Writing a WebSocket server in Javahttps://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API/Writing_a_WebSocket_server_in_Java
Writing a WebSocket server in JavaScript (Deno)https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API/Writing_a_WebSocket_server_in_JavaScript_Deno
Using WebSocketStream to write a clienthttps://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API/Using_WebSocketStream
WebSockethttps://developer.mozilla.org/en-US/docs/Web/API/WebSocket
WebSocketStreamhttps://developer.mozilla.org/en-US/docs/Web/API/WebSocketStream
CloseEventhttps://developer.mozilla.org/en-US/docs/Web/API/CloseEvent
MessageEventhttps://developer.mozilla.org/en-US/docs/Web/API/MessageEvent
MDNhttps://developer.mozilla.org/
https://github.com/mdn/
https://bsky.app/profile/developer.mozilla.org
https://x.com/mozdevnet
https://mastodon.social/@mdn
https://developer.mozilla.org/en-US/blog/rss.xml
About https://developer.mozilla.org/en-US/about
Blog https://developer.mozilla.org/en-US/blog/
Mozilla careers https://www.mozilla.org/en-US/careers/listings/
Advertise with us https://developer.mozilla.org/en-US/advertising
MDN Plus https://developer.mozilla.org/en-US/plus
Product help https://support.mozilla.org/products/mdn-plus
MDN Community https://developer.mozilla.org/en-US/community
Community resources https://developer.mozilla.org/en-US/docs/MDN/Community
Writing guidelines https://developer.mozilla.org/en-US/docs/MDN/Writing_guidelines
MDN Discord https://developer.mozilla.org/discord
MDN on GitHub https://github.com/mdn
Web technologies https://developer.mozilla.org/en-US/docs/Web
Learn web development https://developer.mozilla.org/en-US/docs/Learn_web_development
Guides https://developer.mozilla.org/en-US/docs/MDN/Guides
Tutorials https://developer.mozilla.org/en-US/docs/MDN/Tutorials
Glossary https://developer.mozilla.org/en-US/docs/Glossary
Hacks blog https://hacks.mozilla.org/
Mozillahttps://www.mozilla.org/
Website Privacy Noticehttps://www.mozilla.org/privacy/websites/
Telemetry Settingshttps://www.mozilla.org/en-US/privacy/websites/data-preferences/
Legalhttps://www.mozilla.org/about/legal/terms/mozilla
Community Participation Guidelineshttps://www.mozilla.org/about/governance/policies/participation/
a Creative Commons licensehttps://developer.mozilla.org/docs/MDN/Writing_guidelines/Attrib_copyright_license

Viewport: width=device-width, initial-scale=1.0


URLs of crawlers that visited me.