-
Notifications
You must be signed in to change notification settings - Fork 325
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wip: working standalone hapi v18, wip one from js-ipfs
Second checkpoint: I took js-ipfs `0.35.0-pre.0` for a spin. It ships with [hapi.js](https://github.com/hapijs) v18, HTTP server used for exposing Gateway. Done: - [x] start raw `http` server (`http.createServer`) - [x] start raw `hapi` server (`Hapi.Server`) (screenshot below) - after some troubleshooting I managed to start raw Hapi server but got internal error for all responses - [x] return valid response from `hapi` server running in browser extension - got it to work by replacing `url` with [iso-url](https://www.npmjs.com/package/iso-url) during webpack build Next: - [ ] start embedded js-ipfs with Gateway exposed by embedded Hapi server - right now `new Ipfs(..)` fails due to `TypeError: this._dht.on is not a function`, it seems libp2p does not disable DHT fully when we polyfill `net`/`dgram` using `chrome.sockets` - [ ] start js-ipfs-http-client - does not work due to `TypeError: res.req.getHeaders is not a function` – probably `http` API mismatch between expected and one provided by chrome.sockets polyfil
- Loading branch information
Showing
5 changed files
with
592 additions
and
214 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.