Aliens Wiki
Cinematic Knowledge Experience
0%
Aliens Wiki
Now Playing
Aliens Wiki · HIEN
⌨️ Keyboard Shortcuts
Next slide Previous slide SpacePlay / Pause MNarration on/off FFullscreen ?Show/hide this
Press any key to close
Wiki Article · Cinematic

WebSocket

WebSocket ek communication protocol hai jo ek single TCP connection par full-duplex (dono taraf…

Overview
🌟

WebSocket — Quick Facts

📌

Field: Detail

🎯

Full Name: WebSocket Protocol

Type: Communication Protocol…

🔑

RFC: RFC 6455 (December 2011, IETF)

Topic 1

Infobox

🌐 | Field | Detail | |---|---| | Full Name | WebSocket Protocol | | Type | Communication…
Topic 2
💻 📊 🔬

Overview

💡

Chat app me — koi naya message kab…

🔑

Stock ticker me — prices har…

Multiplayer game me — player…

🎯

Ek baar connection kholo (HTTP…

Topic 3
📥 📥 🧠 🔬 💡 🎯

History

💡

Browser har X seconds me server se…

🔑

Server: "nahi" (zyada tar waqt) ya…

Problem: wasteful — 90% requests…

🎯

Browser request bhejta. Server…

Topic 4
📥 📥 🧠 🔬 💡 🎯

How WebSocket Works

💡

WebSocket connection HTTP request…

🔑

Browser ek HTTP GET request bhejta…

Connection: Upgrade — "mujhe…

🎯

Upgrade: websocket — "WebSocket…

Topic 5

WebSocket vs HTTP

💡

Static content serving (web pages,…

🔑

REST APIs (CRUD operations —…

File uploads/downloads

🎯

Occasional data fetches (not…

Topic 6
📥 ⚙️ 🔬 💡

WebSocket API

💡

0 — CONNECTING — Connection…

🔑

1 — OPEN — Connection active hai.…

2 — CLOSING — Close handshake in…

🎯

3 — CLOSED — Connection band ho…

Topic 7

WebSocket vs Alternatives

💡

HTTP Polling — Sabse simple lekin…

🔑

Long Polling — Polling se better…

SSE — Server-to-client only…

🎯

WebSocket — Bidirectional…

Topic 8
🔒

Security

💡

ws:// — unencrypted WebSocket…

🔑

wss:// — WebSocket Secure —…

Production me hamesha wss:// use…

🎯

Same TLS certificates aur…

Topic 9
📥 📥 🧠 🔬 💡 🎯

Scalability

💡

HTTP stateless hai — koi bhi…

🔑

WebSocket stateful hai —…

Load balancer ke peeche multiple…

🎯

Load balancer ensure kare ki same…

Topic 10
💻 📊 🔬

Use Cases

💡

WhatsApp Web, Slack, Discord — sab…

🔑

Naya message aaye → server push…

Typing indicators ("User is…

🎯

Online/offline status updates —…

Topic 11
🔒

Enterprise Context

💡

Aliens Chat, Notification,…

🔑

WebOS me real-time event system…

Multiple WebApps me shared…

🎯

API Gateway — WebSocket…

Topic 12
📱

Glossary

📱 | # | Term | Definition | |---|---|---| | 1 | WebSocket | Communication protocol jo…
Comparison

WebSocket vs HTTP

⚖️

Communication Model: Request → Response…

⚖️

Who Initiates: Client always initiates…

⚖️

Connection: New connection per request…

Comparison

WebSocket vs Alternatives

⚖️

Direction: Client → Server only

⚖️

Connection: New per request

⚖️

Latency: High (polling interval)

Diagram
📥 ⚙️ 🔬 💡

Visual Flow

📊 Diagram visualization — details in narration
Diagram
📥 ⚙️ 🔬 💡

Visual Flow

📊 Diagram visualization — details in narration
Related Topics

See Also

📖

HTTP

🔗

HTTPS

💡

TCP

📚

API

🔑

JavaScript

🌐

Browser

Quick Quiz
🧠 QUIZ TIME

Quiz — Question 1

WebSocket ka sabse sahi definition kya hai?

Quick Quiz
🧠 QUIZ TIME

Quiz — Question 2

WebSocket ka 'Full Name' kya hai?

Complete! 🎉
COMPLETE

WebSocket Complete!

Aliens Wiki · HIEN · Cinematic Knowledge

WebSocket Complete

➡️

HTTP

1/22
0:00
REC 00:00ESC=Cancel
Aliens School
3
Recording shuru hone wali hai...
Recording Complete
Video process ho rahi hai...
Live Class
Slide 1 / 7
Timer
00:00
📝 Speaker Notes
⏭️ Up Next
🗂️ All Slides