-
Hi all, Using
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Have you had a look at I haven't used it before, least of all for websockets, but I think you will basically do 1) Set up your websocket, 2) Call create subscriber and call its |
Beta Was this translation helpful? Give feedback.
Have you had a look at
createSubscriber
: https://svelte.dev/docs/svelte/svelte-reactivity#createSubscriberI haven't used it before, least of all for websockets, but I think you will basically do 1) Set up your websocket, 2) Call create subscriber and call its
update
function when your websocket receives messages, 3) Create a setter that writes to the websocket, and you should be able to bind to it.