Mercurial
changeset 123:3f4ec30e42e0
Added blog files.
| author | June Park <parkjune1995@gmail.com> |
|---|---|
| date | Thu, 08 Jan 2026 06:46:10 -0800 |
| parents | 96628cf126a0 |
| children | dbf14f84d51c 3a564ffb2092 |
| files | mrjunejune/src/blog/websocket-demystified/index.html mrjunejune/src/blog/websocket-demystified/index.md |
| diffstat | 2 files changed, 24 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mrjunejune/src/blog/websocket-demystified/index.html Thu Jan 08 06:46:10 2026 -0800 @@ -0,0 +1,20 @@ +<!DOCTYPE html> +<html lang="en"> +<head> + <meta charset="UTF-8"> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <title>Websocket Demystified</title> + {{/parts/base_head.html}} + <link rel="stylesheet" href="/tools/markdown_to_html/index.css" /> +</head> +<body> + {{/parts/header.html}} + <main> + <div id="content"></div> + </main> + {{/parts/footer.html}} + <script src="/markdown_to_html.js"></script> + <script> + fetch('/blog/websocket-demystified/index.md').then(res => res.text()).then(text => renderMarkdown(content, text)); + </script> +</body>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mrjunejune/src/blog/websocket-demystified/index.md Thu Jan 08 06:46:10 2026 -0800 @@ -0,0 +1,4 @@ +# Websocket Demystified + +Websocket has been around for more than 10 years now. (Its [RFC](https://www.rfc-editor.org/rfc/rfc6455) was created in 2011.). This was inevitable as apps got more complexed people wanted to create an application that can create bidirectional communicate with server, and not create hacky solutions that will create raw TCP connection between client and server with some keys or do some short/long polling. Now, this is the most widely used protocol for LLM chat usages or any chat usages as expected since LLM sends messages in a stream of bytes as it is predicting next words at a time. Many developers create websocket connection through +