Skip to content
This repository was archived by the owner on Jan 16, 2024. It is now read-only.
This repository was archived by the owner on Jan 16, 2024. It is now read-only.

Consider websockets for pushing results #17

@robertutterback

Description

@robertutterback

In previous prototypes I used websockets to push results as they were reading, which I still think is the right approach. This way we don't overload the server and many viewers can easily subscribe to get the results of any given analysis.

However, Sveltekit doesn't easily support websockets. I think it can be made to work (search for relevant issues in the sveltejs/kit repo, although getting it to work both in dev and adapter-node is a pain. I think they are working on it, but given their insistence of providing first-class support serverless adapters, it may be a while. (Someone should fork Sveltekit and just focus on node adapters to make faster progress...)

So my choices are:

  1. Just do polling (which I am doing now)
  2. Wait until Sveltekit provides better support
  3. Switch to plain Svelte with my own setup, probably express or polka.

I'm not even experienced enough to know where Sveltekit holds me back, so there are probably other benefits to (2). Especially since I do not care much about the SSR features of Sveltekit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions