Skip to content

Commit

Permalink
docs: add file
Browse files Browse the repository at this point in the history
  • Loading branch information
behzadam committed Aug 14, 2024
1 parent 72fdc1e commit 00ab804
Show file tree
Hide file tree
Showing 14 changed files with 35 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/network/http-2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# HTTP 2
1 change: 1 addition & 0 deletions docs/network/http-3.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# HTTP 3
5 changes: 5 additions & 0 deletions docs/network/polling.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Polling

## Long polling

## Short polling
6 changes: 4 additions & 2 deletions docs/network/web-socket.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ WebSocket is a communication protocol that enables full-duplex communication bet

![WebSocket Diagram](./web-socket.gif "WebSocket Diagram")

[Github Repo](https://github.com/behzadam/sample-websocket) (>‿◠)

## How Protocol Switching Works?

Pro-tip: The browser uses TCP to initialize and then switches the protocol to WebSocket after receiving a response from the server, a process known as Protocol Switching.
Expand Down Expand Up @@ -56,3 +54,7 @@ WebSocket is widely used in applications that require real-time updates, such as
In summary, browser protocol switching in WebSocket connectivity is a fundamental mechanism that enables efficient and real-time communication between clients and servers.

Checkout the [Github Repo](https://github.com/behzadam/sample-websocket) to see a simple client and server implementation.

## Sample Code

[Github Repo](https://github.com/behzadam/sample-websocket) (>‿◠)
8 changes: 8 additions & 0 deletions docs/performance/_category_.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"label": "Performance",
"position": 1,
"link": {
"type": "generated-index",
"description": "Advanced Performance Techniques"
}
}
1 change: 1 addition & 0 deletions docs/performance/caching.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Caching
1 change: 1 addition & 0 deletions docs/performance/fonts.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Fonts
1 change: 1 addition & 0 deletions docs/performance/images.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Images
1 change: 1 addition & 0 deletions docs/performance/preconnect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Preconnect
1 change: 1 addition & 0 deletions docs/performance/prefetch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Prefetch
1 change: 1 addition & 0 deletions docs/performance/preload.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Preload
1 change: 1 addition & 0 deletions docs/performance/vitals.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Core Vitals
8 changes: 8 additions & 0 deletions docs/webapis/_category_.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"label": "Web APIs",
"position": 1,
"link": {
"type": "generated-index",
"description": "Advanced Performance Techniques"
}
}
1 change: 1 addition & 0 deletions docs/webapis/storage.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Web Storage

0 comments on commit 00ab804

Please sign in to comment.