farrow icon indicating copy to clipboard operation
farrow copied to clipboard

Feature Request: Subscription support

Open tqma113 opened this issue 3 years ago • 7 comments

Like Subscription of GraphQL, maybe by WebSocket?

tqma113 avatar Apr 29 '21 04:04 tqma113

It seems easy to implement something like subscription via WebSocket or Polling in user-land.

For now, I don't know much about what we need to support internally.

If you already have some idea, please explain what you want to do here.

Lucifier129 avatar Apr 29 '21 05:04 Lucifier129

I know how to implement Subscription by Polling in user-land. And I think it needs support internally if implement it by WebSocket. And the Polling way will take more overload network resource than WebSocket way. If are there another way I do not know?

tqma113 avatar Apr 29 '21 07:04 tqma113

Yeah, I got it.

If we want to use farrow-api via WebSocket, we need to add the codegen support in farrow-api. It may cause some degree of refactoring. It's not easy work to do.

I prefer to delay this feature until wide users of Farrow strongly request it, or we finally find out an easy way to implement it.

Lucifier129 avatar Apr 29 '21 07:04 Lucifier129

Can there be a Subprogramme first? Such as a new package like farrow-subscription

tqma113 avatar Apr 29 '21 07:04 tqma113

Does farrow support websocket now?

sinoon avatar Apr 29 '21 09:04 sinoon

Can there be a Subprogramme first? Such as a new package like farrow-subscription

It's good, for the experiment.

Lucifier129 avatar Apr 29 '21 10:04 Lucifier129

Does farrow support websocket now?

Not yet

Lucifier129 avatar Apr 29 '21 10:04 Lucifier129