effect icon indicating copy to clipboard operation
effect copied to clipboard

Idea: Sockets

Open schickling opened this issue 1 year ago • 2 comments

What is the problem this feature would solve?

  • requirements
    • stateful
    • bidirectional
    • multi-plexing
    • support "protocol schema" similar to RPC schemas
  • use cases:
    • effect cluster (cc @mattiamanzati @IMax153)
    • chrome extensions
  • further thoughts:
    • Idea by @mikearnaldi: could it make sense to allow for sockets with more than 1:1 communication

What is the feature you are proposing to solve the problem?

Some sort of Socket abstraction. TBD.

What alternatives have you considered?

No response

schickling avatar Jun 21 '24 13:06 schickling

There is some work already done on sockets in /platform FYI:

  • https://effect-ts.github.io/effect/platform/Socket.ts.html

It's used to enable the functionality of the dev tools backend for the VSCode extension.

IMax153 avatar Jun 21 '24 14:06 IMax153

There is some work already done on sockets in /platform FYI:

  • https://effect-ts.github.io/effect/platform/Socket.ts.html

It's used to enable the functionality of the dev tools backend for the VSCode extension.

Seems like this is lower level compared to what's discussed here, the discussed abstraction is more alike a bilateral rpc over a stateful channel, maybe Socket isn't the right name for the abstraction

mikearnaldi avatar Jun 22 '24 09:06 mikearnaldi