This repository was archived by the owner on Feb 12, 2024. It is now read-only.
This repository was archived by the owner on Feb 12, 2024. It is now read-only.
pubsub.subscribe option parameter not optional in 0.27 #1129
Closed
Description
According to the docs, option is optional, but it is required in 0.27 as it will try to call the callback as the third parameter.
https://github.com/ipfs/interface-ipfs-core/blob/master/SPEC/PUBSUB.md#pubsubsubscribe
If only two parameters were given, both callback and handler would be undefined
js-ipfs/src/core/components/pubsub.js
Line 16 in bd264f2