WebSockets
Plan
Web sockets as technology
WebSocket js object
Example
Web Sockets protocol
Bidirectional communication
Long-lasting connection
ws: // wss: //
WebSocket object
// Create WebSocket connection. const socket = new WebSocket('ws://localhost:8080');
Properties
Methods
Example
Useful links
https://developer.mozilla.org/en-US/docs/Web/API/WebSocket
https://javascript.info/websocket
https://www.npmjs.com/package/ws
Made with Slides.com