Networking
WebSocket API
Establish persistent two-way interactive communication sessions between browser and server.
Checking support...
Feature Not SupportedThis browser does not support the WebSocket API Web API feature. Try testing in a modern browser (such as Chrome, Edge, Safari, or Firefox).
Advertisement
Interactive Input Workspace
Ready for input
Web API Execution Output
Result output will be displayed here after processing...
Native JavaScript Code Example (Zero Libraries)
const ws = new WebSocket('wss://echo.websocket.org');
ws.onmessage = (e) => console.log(e.data);About the WebSocket API Web API
WebSocket API opens a two-way interactive communication session between the user browser and a server.
Specification:W3C & WHATWG Web API Standard
Sponsored Content