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

Websocket relay does not relay pubsub messages (except pub-sub peer-discovery) #1

Closed
silkroadnomad opened this issue Mar 14, 2024 · 1 comment
Labels
bug Something isn't working enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@silkroadnomad
Copy link
Owner

silkroadnomad commented Mar 14, 2024

e.g. in hotel wifi's where Webrtc is restricted through some firewall, (connection is established via Websocket), relay establishes the WebSocket connection to browser peers

The peers create a Webrtc swarm successfully

  • not confirmed anymore 15.03.2024 - location Komune
  • confiremd 25.05.2024 - location ekb coworking

Unfortunately, if any peer publishes a pub-sub message no other peer can listen and react to it. (except probably the relay, which doesn't relay it via WebSocket).

Mobile networks:
In mobile networks on the other hand this works perfectly (via webrtc then)

Test:

  • in an environment where peer-to-peer connections are blocked (peer-to-peer pub-sub doesn't work) which if that counts for both a WebRTC only connected peers and also for a Websocket only connected peers.

  • 25.05.2024 (location ekb coworking) - successfully webrtc only connected swarm (via Rust WebRTC relay) but NO pubsub on deContact topic but OrbitDB replicates successfully (via pubsub)

  • 25.05.2024 (location ekb coworking) - successfully websocket only connected swarm (via Websocket relay) but NO pubsub on deContact but OrbitDB replicates successfully (via pubsub)

  • check if websocket relay can subscribe to a peers topic manually.

  • make sure / clarify a websocket relay is able to relay pubsub messages via websocket if peers are not already connected via webrtc

@silkroadnomad silkroadnomad added bug Something isn't working enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers labels Mar 25, 2024
@silkroadnomad
Copy link
Owner Author

using circuit-relay transport fixed the issue (latest commit)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant