Giter Site home page Giter Site logo

earthstar-streaming-rpc's People

Contributors

cinnamon-bun avatar sgwilym avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

kustomzone

earthstar-streaming-rpc's Issues

RPC: how to import express in Deno (or use opine?)

Help set up the project so it imports express in node, but opine in deno. Hopefully they are similar enough that our basic usage of them will work in both cases.

Nothing is importing this yet, it will be part of TransportHttpServer when that is written.

Resolve HTTP not working for both Browser and Node in NPM package.

What's the problem you want solved?

When the NPM package is bundled, fetch is shimmed using node-fetch. This shim does not work in the browser, which means that users of the NPM versions of earthstar packages cannot sync via HTTP.

Is there a solution you'd like to recommend?

I need to find some solution for either:

  • Shimming with an 'isomorphic' version of fetch which works in both Node and the Browser. I'd probably need to make this myself as there are no packages right now which satisfy dnt's ESM and typings requirements.
  • Possibly splitting build process up so that there is both a Node and Browser version of earthstar-streaming-rpc, further complicating things.

"EventTarget is not defined" on node 14

What's the problem you want solved?

npm test fails on node 14:

ReferenceError: EventTarget is not defined
    at Object.<anonymous> (/Users/me/projects/earthstar-streaming-rpc/npm/node_modules/@deno/shim-deno/dist/deno/stable/classes/PermissionStatus.js:7:32)

This is coming from denoland/node_deno_shims also known as @deno/shim-deno, used by dnt.

This was fixed already in deno shims but the fix has not been released, it came a few days after the latest release of 0.1.2.

Is there a solution you'd like to recommend?

We need to encourage shim-deno to make a new npm release.

RPC: HTTP

write

  • TransportHttpClient
  • TransportHttpServer

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.