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

Build errors: Cannot find type 'ResponseType' in scope #1

Open
Jonovono opened this issue Apr 21, 2023 · 3 comments
Open

Build errors: Cannot find type 'ResponseType' in scope #1

Jonovono opened this issue Apr 21, 2023 · 3 comments

Comments

@Jonovono
Copy link

Hey, I am getting some build errors:

Cannot find type 'ResponseType' in scope
Cannot infer contextual base in reference to member 'close'

I am wondering if anyone is able to assist me.

I would be willing to pay for some support getting this library up and running on a project.

Question I have: Is SwiftLibp2p in a state good enough to get a project like this working that could work p2p on devices over the internet? (webrtc, websocket, ucp (even with relay server))

@btoms20
Copy link
Member

btoms20 commented Apr 21, 2023

Hey @Jonovono, I've been meaning to update this example for a while now. I'll spend a bit of time refreshing it over the weekend, hopefully getting it to a state that works. At the moment, this app relies on mDNS to find peers on the same network, but a more useful example would use a Rendezvous server or perhaps the DHT to find peers that support the chat protocol.

In regards to your question about the state of swift-libp2p. It currently supports TCP & Websocket connections, it doesn't have webrtc support yet and we haven't implemented the circuit-relay protocol yet.

I've been sitting on a rough implementation of PubSub and KadDHT that I could upload as a WIP that would make swift-libp2p much more useful.

If you're in a hurry, I'd recommend trying to embed one of the official implementations into your app (go, rust, js/ts). If you're excited about a native swift approach and are up for some debugging then maybe give swift-libp2p a try.

I'll keep you posted!

@btoms20
Copy link
Member

btoms20 commented Apr 23, 2023

Hey @Jonovono, I just made some changes to the repo, it should be easier to try out now that I'm including the project file. Let me know if you have any issues getting it to work.

@btoms20
Copy link
Member

btoms20 commented May 11, 2023

Hey @Jonovono, were you able to get the example working? If so I'm going to go ahead and close this issue. Let me know. Thanks!

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

2 participants