WebSockets
Tek bir TCP bağlantısı üzerinden tam çift yönlü iletişim kanalları sağlayan bir iletişim protokolü.
WebSockets, sunucunun istemciye veri göndermesi için istemcinin talep etmesini beklemesine gerek kalmadan 'push' yapmasına olanak tanır.
graph LR
Center["WebSockets"]:::main
Rel_websocket["websocket"]:::related -.-> Center
click Rel_websocket "/terms/websocket"
Rel_http["http"]:::related -.-> Center
click Rel_http "/terms/http"
classDef main fill:#7c3aed,stroke:#8b5cf6,stroke-width:2px,color:white,font-weight:bold,rx:5,ry:5;
classDef pre fill:#0f172a,stroke:#3b82f6,color:#94a3b8,rx:5,ry:5;
classDef child fill:#0f172a,stroke:#10b981,color:#94a3b8,rx:5,ry:5;
classDef related fill:#0f172a,stroke:#8b5cf6,stroke-dasharray: 5 5,color:#94a3b8,rx:5,ry:5;
linkStyle default stroke:#4b5563,stroke-width:2px;
🧒 5 yaşındaki gibi açıkla
Hiç kapanmayan bir telefon hattı gibi. İstediğiniz zaman konuşabilir, mesajlarınızı anında iletebilirsiniz.
🤓 Expert Deep Dive
RFC 6455 ile standardize edilmiştir. HTTP Upgrade adımıyla başlar. Canlı borsa verileri ve anlık mesajlaşma uygulamalarının temel teknolojisidir.
❓ Sık sorulan sorular
Is WebSocket better than HTTP?
For real-time data, yes. For static content or standard web pages, HTTP is more efficient.
Does WebSocket use a port?
It typically uses port 80 for WS and 443 for WSS, shares with HTTP.