This repository has been archived by the owner on Feb 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
PubSub Interop Tests and CLI+HTTP-API Implementation #1081
Merged
Merged
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
61966c0
test: enable pubsub tests
richardschneider 534d849
fix: generate meaniful error when pubsub is called and not enabled
richardschneider 12ec8d2
test: enable pubsub for factory daemon
richardschneider 1e9f260
test: enable pubsub tests
richardschneider 15ab7a2
fix: generate meaniful error when pubsub is called and not enabled
richardschneider dc5166c
test: enable pubsub for factory daemon
richardschneider 718645d
fiix(pubsub-subscribe): stop HAPI gzip from buffering our streamed re…
richardschneider ad6d9a4
Merge branch 'pubsub' of https://github.com/ipfs/js-ipfs into pubsub
richardschneider 533d803
test: fix spec/pubsub
richardschneider 08955a2
fix: lint errors
richardschneider c5fda15
test: tests js/go pubsub interop
richardschneider c7c27a3
test: pubsub interop tests
richardschneider 8c7eaf0
test: enable pubsub tests
richardschneider 6c89ce4
fix: generate meaniful error when pubsub is called and not enabled
richardschneider 63a7c5b
test: enable pubsub for factory daemon
richardschneider 3d3363f
fiix(pubsub-subscribe): stop HAPI gzip from buffering our streamed re…
richardschneider 42ceb4b
test: fix spec/pubsub
richardschneider b12e688
fix: lint errors
richardschneider bc0e1bd
test: tests js/go pubsub interop
richardschneider fb726a7
test: pubsub interop tests
richardschneider 5bc9ce2
test: more tests with different data types
richardschneider 97e619f
Merge branch 'pubsub' of https://github.com/ipfs/js-ipfs into pubsub
richardschneider 9d83fa3
HTTP API server: parsing query string as binary in pubsub publish
pgte fc724e1
HTTP API: pubsub: publish should fail gracefully when no argument is …
pgte 7b5dc81
chore: update deps
daviddias 0c98a48
chore: update deps
daviddias 18179d7
last pass
daviddias 7cdaeec
Merge branch 'pubsub-cont' into pubsub
daviddias File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
'use strict' | ||
|
||
const EventEmitter = require('events') | ||
|
||
function fail () { | ||
throw new Error('The daemon must be run with \'--enable-pubsub-experiment\'') | ||
} | ||
|
||
class NoFloodSub extends EventEmitter { | ||
constructor () { | ||
super() | ||
|
||
this.peers = new Map() | ||
this.subscriptions = new Set() | ||
} | ||
|
||
start (callback) { callback() } | ||
stop (callback) { callback() } | ||
publish () { fail() } | ||
subscribe () { fail() } | ||
unsubscribe () { fail() } | ||
} | ||
|
||
module.exports = NoFloodSub |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
6 | ||
6 |
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome!