atom / teletype

Share your workspace with team members and collaborate on code in real time in Atom
https://teletype.atom.io
MIT License
2.41k stars 322 forks source link

Attempting to join portal failed with error: Connecting to peer timed out #472

Closed sainirijul closed 5 years ago

sainirijul commented 5 years ago

I am trying to use teletype-client library in vs-code. The objective of this task is to share/join portal with vs code and atom editor. I am using the latest version of teletype-client library in vs code project.

Issue: While launching a portal from Atom editor on my system and using its portal ID in order to join the portal from vs code, I am getting the below error: Failed to join portal: Attempting to join portal 5ebb2a6e-2508-4769-bd3e-9fc37e4114d2 failed with error: Connecting to peer timed out

Replication Steps: VS Code extension written in typescript for teletype. I have used the teletype-client library in order to join the portal launched from atom editor.

Logs: In Atom, after opening the DevTools , I enabled Pusher logging by running the following in the DevTools Console:

atom.packages.getLoadedPackage('teletype').mainModule.client.pubSubGateway.pusherClient.constructor.logToConsole = true

and shared the portal. I get the below output: image

image

Also, I am using the pusher-js version in vs code (const Pusher = require('pusher-js')) and not (const Pusher = require('pusher-js/dist/web/pusher')) as provided in the latest version of teletype-client here because otherwise I am getting the below error:

image

I have also tried the version as mentioned here. I tried both cases "pusher" and "socketcluster" but i get the same error - Failed to join portal: Attempting to join portal 5ebb2a6e-2508-4769-bd3e-9fc37e4114d2 failed with error: Connecting to peer timed out.

Please advice on this.

rsese commented 5 years ago

Thanks for reaching out and for the detailed report -

The objective of this task is to share/join portal with vs code and atom editor. I am using the latest version of teletype-client library in vs code project.

While this definitely sounds neat that you're trying to connect to the same portal from Atom and VS Code, with the team's current priorities, investigating Teletype's use outside of Atom isn't something the maintainers will be able to help investigate right now unfortunately.

The best resource I can share is the Atom Slack - there are number of helpful community members there that might be able to help or who might be interested in the same use case.

Since this isn't something the team would investigate or work on, I'm going to close this issue but thanks again for your interest and I do hope you get this up and running!