mastodon.world is one of the many independent Mastodon servers you can use to participate in the fediverse.
Generic Mastodon server for anyone to use.

Server stats:

8.4K
active users

#websockets

0 posts0 participants0 posts today
Continued thread

…And there are more interesting tid-bits in there too:

• See how I’m pushing Kitten’s Streaming HTML to its logical conclusion and streaming JavaScript from the server to the client to keep all logic on the server while implementing a client-side feature (copy to clipboard): codeberg.org/small-web/look-ov

• Following on from that, note how the Toast component that’s triggered when something is copied looks (under the hood, Streaming HTML is htmx + WebSockets + some Kitten-specific magic and glues it all together and adds syntactic sugar): codeberg.org/small-web/look-ov

• Finally, check out how layout components and slots work: codeberg.org/small-web/look-ov

I think that’s all the intersting stuff I can spot at the moment.

Have fun!

:kitten:💕

codeberg.orgMaking sure you're not a bot!

Как я создал клон Pinterest с использованием Vue 3 и FastAPI

GitHub : Ссылка на репозиторий Live Preview : Посмотреть проект Привет, друзья! В этой статье я расскажу, как создал клон Pinterest с использованием современных технологий — Vue 3 для фронтенда и FastAPI для бэкенда. Это многофункциональное полнофункциональное приложение, практически полностью повторяющее Pinterest. Особенностью проекта является кеширование вкладок с помощью Vue Router и KeepAlive , что значительно улучшает пользовательский опыт. Этот проект стал отличной возможностью прокачать навыки в разработке production-уровня fullstack-приложений с поддержкой функционала в реальном времени .

habr.com/ru/articles/903690/

ХабрКак я создал клон Pinterest с использованием Vue 3 и FastAPIGitHub : Ссылка на репозиторий Live Preview : Посмотреть проект Привет, друзья! В этой статье я расскажу, как создал клон Pinterest с использованием современных технологий — Vue 3 для фронтенда и...

🌗 你可能不需要 WebSocket
➤ 重新思考即時通訊的選擇:WebSocket 或 HTTP?
hntrl.io/posts/you-dont-need-w
這篇文章探討了 WebSocket 在現代網路應用中的實際應用價值。儘管 WebSocket 廣受歡迎,但作者指出,許多情況下使用傳統的 HTTP 協議也能達到相同的效果,甚至更簡單、更可靠。文章分析了 WebSocket 在處理狀態一致性、錯誤處理和連接生命週期管理方面的複雜性,並建議在不需要雙向即時通訊的場景下,應優先考慮使用 HTTP 協議。
+ 我一直覺得 WebSocket 很酷炫,但這篇文章讓我意識到它並不是萬能的。對於一些簡單的應用,HTTP 確實更適合。
+ 這篇文章很有見地!我之前一直盲目地使用 WebSocket,現在我會重新審視我的設計,看看是否可以替換成 HTTP。
#網路技術 #WebSockets #HTTP #即時應用

hntrl.io · You might not need WebsocketsWebsockets are powerful tools that have become a fan-favorite for building realtime applications, but you might be using them for all the wrong reasons. Let's explore the pitfalls of websockets and how we can use plain old HTTP to get the same job done.

Today I learned…

1. there's a card game where you complete a task from Unix pipe commands: punkx.org/unix-pipe-game/ (via mamot.fr/@bearstech/1142758430)
2. there's a JavaScript x86 machine emulator so you can play that game without needing a real computer around: bellard.org/jslinux/tech.html
3. that JS VM gets network connectivity because someone decided to make a websocket-based VPN that passes Ethernet frames: benjamincburns.com/2013/11/10/

punkx.orgThe UNIX Pipe Card Game

Вебсокеты на FastAPI: Реализация простого чата с комнатами за 20 минут

Хотите освоить WebSocket и создать собственный чат с комнатами? В этой статье мы разберем: - В чем разница между WebSocket и классическим HTTP - Как реализовать сервер на FastAPI с поддержкой WebSocket - Как создать простой FullStack-чат для мгновенного обмена сообщениями - Как всего за пару минут развернуть готовое приложение на облачном сервисе Статья написана с учетом новичков, но и опытные разработчики найдут здесь полезные инсайты.

habr.com/ru/companies/amvera/a

ХабрВебсокеты на FastAPI: Реализация простого чата с комнатами за 20 минутВ ближайшее время я планирую опубликовать большую статью на Хабре , где подробно разберу разработку анонимного чата в формате Telegram MiniApp . Мы создадим сервис для общения тет-а-тет , который...

New Kitten update

kitten.small-web.org

• Added `remove()` method to kitten.Component class. Use this when working with live pages and components and you want to remove a component from the page (or its parent). It will handle removing event listeners for you so you don’t end up with any memory leaks.

• Improved `update()` method so it similarly removes listeners on child components before updating the component itself in case you have class-based child components that will be reinstantiated on render.

• Updated the `send()` methods on `page.everyone` and `page.everyoneElse` so you can pass a swap target to insert the element being streamed to the page before, after, asFirstChildOf, or asLastChildOf another. (This was already there for the page.send() but now the two broadcast objects have the same consistent interface.

The @small-web/kitten npm package (Kitten’s types package) has also been updated to version 5.1.0 to reflect the latest changes.

(Remember that the new class and event-based page and component model is still experimental and largely undocumented and fully backwards compatible with the classic functional way of authoring your page routes and components.)

Enjoy!

:kitten:💕