DEV Community

💎 of solid-primitives, part 2: storage

Alex Lohr on March 26, 2024

Solid.js is already pretty powerful, but even so, there are things it cannot do out of the box. Here's where the community comes in and provides pa...
Collapse
 
adaptive-shield-matrix profile image
Adaptive Shield Matrix

The sync/persistence especially in combination with websockets is pretty cool.

I'm missing the missing websocket setup code or the full standalone source repo, especially since websockets are stateful:

  • the connection has to have been established before,
  • how to delay sending if the websocket is temporarily closed or in a connecting state
  • how to handle reconnects
Collapse
 
lexlohr profile image
Alex Lohr • Edited

We have another primitive handling web sockets, including heart beat with reconnect.