earthstar-project / earthstar-streaming-rpc Goto Github PK
View Code? Open in Web Editor NEWLike JSON-RPC, but supports streaming.
License: GNU Lesser General Public License v3.0
Like JSON-RPC, but supports streaming.
License: GNU Lesser General Public License v3.0
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.
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.
I need to find some solution for either:
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
.
We need to encourage shim-deno to make a new npm release.
write
TransportHttpClient
TransportHttpServer
Make the tests run in a browser somehow. Ideally multiple specific browsers (Chrome, Firefox).
Possibly solutions: browser-run, Jest, Puppeteer, Playwright
transport-http-server-opine (and -express) currently hijack all of the routes of the opine/express app that is passed into the constructor
Use the path
opt if it exists and if not default to the wildcard
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.