web socets
Web socets
- ports numbers and IP addresses combined creates socets
- Allows duplex communication bettwen the server and the client
- Enables u to connect your frontend with backend 1 ## Connection THe cleiant is sending HTTP request to the server with a special HTPP header connection Upgrade
IF the servers supporst websocet it rteturen code 101 Switching
Protcols it enables bidriectional communication >[!example]- >It
will be connected unti either parites sends a close messege
>
IPv4 address socets
- Server
- Server IP adress
- protocol
- server application
- port number
- Client
- Client IP adress
- protocol
- clients ports number ==Docs== 100s web socets [[How to start Rust Chat App#ws-rs for websocket server|chatrs]]
[!quote] 3-way Handshake