Search

Items tagged with: websocket


The media in this post is not displayed to visitors. To view it, please go to the original post.

Web Dashboard for Zephyr


image

#microcontrollers #api #microcontroller #realtimeoperatingsystem #restapi #rtos #webdashboard #webui #websocket #zephyr #zephyros #hackaday
posted by pod_feeder_v2


The media in this post is not displayed to visitors. To view it, please go to the original post.


New Kitten Release

• Automatic message routing: if the element that triggers an event on the client does not have a `name` attribute, Kitten now falls back to using its `id` instead to route the event to the correct server-side event handler on your live Kitten pages.

If neither attribute exists, Kitten will fail to route the message but no longer crash as it was due to a regression introduced when I implemented support for colons in element names.¹

kitten.small-web.org

For more details on Kitten’s live pages and automatic message routing, please see the Streaming HTML tutorial:

kitten.small-web.org/tutorials…

Enjoy!

:kitten:💕

¹ A colon in an element name is ignored for message routing purposes, letting you, for example, give unique names to <details> elements, allowing more than one to be open at a time, while having their events be handled by the same handler.

#Kitten #SmallWeb #SmallTech #web #dev #JavaScript #HTML #CSS #hypermedia #htmx #WebSocket #beautifulDefaults #StreamingHTML


New Kitten release

• Fixes issue with routes where dynamic routes with file names that had more than two extensions were not recognised as the correct type of route. e.g., A route called index.xml.get.js would previously have been treated as a static route instead of a dynamic GET route.

kitten.small-web.org

For more details, see the Valid File Types section of the Kitten reference¹ and the Dynamic Pages tutorial².

Enjoy!

:kitten:💕

¹ kitten.small-web.org/reference…
² kitten.small-web.org/tutorials…

#Kitten #SmallWeb #server #framework #kit #SmallTech #routing #NodeJS #JavaScript #HTML #CSS #htmx #WebSocket #hypermedia #StreamingHTML #web #dev



Does anyone here have experience with the #azure cognitive services #api in the browser client? I'm getting an unexplainable #websocket error 1006 that's only happening to my user in certain circumstances, and the reason is `undefined`

I'm confident it's not a bad key, because the same code and deployment works for another user.

#boosts welcome, #help please! This is for a #FOSS accessibility project.


The media in this post is not displayed to visitors. To view it, please go to the original post.

May I just say so myself that I‘m loving playing with Kitten¹ to build Domain² (shown below) and Place³.

¹ kitten.small-web.org
² codeberg.org/domain/app
³ codeberg.org/place/app

#Kitten #Domain #Place #SmallWeb #SmallTech #humanRights #democracy #technology #peerToPeer #peerToPeerWeb #web #dev #JavaScript #HTML #CSS #NodeJS #htmx #WebSocket #objectOriented #eventBased #hypermedia


New Kitten¹ update

Experimental:

• Adds `data` property to Kitten components

• Adds swap target to `page.send` so you can have an element added before, after, as first child of, or as last child of another (this is syntactic sugar over htmx and works around some of the complexities with out-of-band swaps in htmx, especially when streaming table rows to tables).

Also, check out the latest live page and page events state view in Kitten’s Settings (every Kitten app has this settings view).

vimeo.com/1050348456

¹ kitten.small-web.org

#Kitten #SmallWeb #OOP #eventModel #StreamingHTML #liveComponents #WebSocket #RPC #SmallTech #web #dev #framework #server #platform


The media in this post is not displayed to visitors. To view it, please go to the original post.

So last night, while recording the preview of Kitten’s¹ improved component model², I made a silly mistake (copying raw HTML into a JavaScript function instead of wrapping it in a kitten.html`` tagged template, easy to do when you’re refactoring to pull out components from pages).

Then, once I figured out what I’d done, I made another one by forgetting to return the value from the function (easy to do when you’re used to using one-line closures as render functions).

I would have caught both of those so much faster if Kitten had helpful error messages for those two pitfalls. And guess what, this morning, it does :)

Attached are screenshot showing the before and after error messages.

Enjoy!

:kitten:💕

¹ kitten.small-web.org
² Scroll up the thread to watch the video.

#Kitten #SmallWeb #PeerToPeerWeb #web #server #framework #platform #design #usability #errorMessages #authoring #dev #JavaScript #HTML #CSS #htmx #hypermedia #WebSocket #StreamingHTML #SmallTech




New Kitten release 🥳

• Live events view in /💕/settings/state/pages
• Fix automatic event handler binding

kitten.small-web.org

I’ve also updated the Kitten Count example in the Streaming HTML tutorial to use the new, simpler, event handler syntax in the improved (and experimental) Kitten component model. There’s more to the latter (e.g., class-based routes) that’s not documented yet but will be soon.

kitten.small-web.org/tutorials…

Enjoy!

:kitten:💕

#Kitten #SmallWeb #SmallTech #web #dev #hypermedia #htmx #WebSocket #StreamingHTML #HTML #JavaScript #NodeJS


TIL Network protocols Sans I/O ⚡

“… network protocol implementations written in Python that perform no I/O (this means libraries that operate directly on text or bytes; this excludes libraries that just abstract out I/O).” 🤯

Read the reference page 👇
sans-io.readthedocs.io/

#Reusability #Python #FastCGI #HTTP2 #H11 #IRC #OAuth2 #OAuthLib #WebSocket #SOCKS5 #RFC2217 #SerialOverIP #EPICS #FIX #QUIC #LanguageServerProtocol #SMTP #DBus #ThorlabsAPT #Matrix #SSL #TLS #CPython #multipart #formdata






Sensitive content