Is it possible to have Teletype auto reconnect after restart atom?


#1

as subject,
If this can be done now. How to do it?
Thanks
Rex


#2

You can put this in your init script:

atom.commands.dispatch(document.querySelector('atom-workspace'), 'teletype:share-portal')

#3

Thanks for your reply,
It does not do anything after I insert this line to script file. Did I do something wrong?
Is it init.coffee?
do I need to add portal URL or it will re-connect the last portals?
Thanks again for your reply


#4

I don’t know anything about how teletype works. That’s how you run a command automatically when Atom starts.

Or init.js if you prefer. Either way works just fine.

do I need to add portal URL or it will re-connect the last portals?

In that case, you probably want teletype:join-portal, but it won’t be automatic because you’ll still have to add the URL.