Skip to content

Conversation

bigmistqke
Copy link
Owner

Adds support for

  • http
  • stream
  • workers (or any other message-poster, p.ex iframe)
  • websocket (not yet implemented)

Removes

  • the vite-plugin: abstraction adds too little value

before
- to await and return a response from a worker it had to first access '$async': proxy.$async.ping()
- this got awkward when nesting objects proxy.nested.$async.method()

after
- to await and return a response you call $ from the method: proxy.ping.$()
- this is less awkward with nested objects: proxy.nested.method.$()
will reinstate later (maybe). did not give enough DX improvement over using rpc directly imo.
will be used later for encoding stream-rpc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant