Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

js-ipfs 0.33.0 and above do not work well with yjs "y-ipfs-connector" #15

Open
mccoysc opened this issue Nov 20, 2018 · 1 comment
Open

Comments

@mccoysc
Copy link

mccoysc commented Nov 20, 2018

js-ipfs 0.33.0 and above do not work well with yjs "y-ipfs-connector".
i found that after yjs init ok,the "await ipfs.pubsub.ls()" would list an empty topic array....this is not in normal state....it means "y-ipfs-connector" subscribe nothing from ipfs, so it will receive nothing from ipfs

@mccoysc
Copy link
Author

mccoysc commented Nov 20, 2018

I suggest that y-ipfs-connector should remove the dpendcy of ipfs-pubsub-room.
and then,require the user supply some callback functins in init options like 'onSubscribe' for subscribe a topic and 'onMessage' for indicating an incoming message and 'sendMessage' for sending a meassage out and so on

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant