maxmcd / webtty

Share a terminal session over WebRTC

Home Page:https://maxmcd.github.io/webtty/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Beginner question?

arjenpdevries opened this issue · comments

I run webtty in two xterms, and they seem to connect but then I only get lines with:

inbound isControlling && a.isControlling == true

Maybe I am not using it right, but this was my first test :-)

Hi, is it possible you are running both terminals in 'host' mode?
On the hosting terminal you can just run webtty on the other terminal you should run webtty [offer string].

I apologize, that is what I did wrong.

No worries, glad I could help.

@maxmcd Just a suggestion: You could guard against this issue by verifying the SessionDescription type instead of overwriting it on client.go#L129. You would also need to add it to the encoding in pkg/sd thought.

I actually ran into that same error writing some tests and was trying to figure it out. Thanks @backkem, will do.