maxmcd / webtty

Share a terminal session over WebRTC
https://maxmcd.github.io/webtty/
MIT License
2.71k stars 143 forks source link

Onmessage has not been set for Datachannel data 0 ERROR #7

Closed sgeisbacher closed 4 years ago

sgeisbacher commented 5 years ago

often (every 2nd or 3rd try) i get the error that the Onmessage-event-handler is not set after successfully established connection:

...
Terminal session started:
Onmessage has not been set for Datachannel data 0
                                                  Onmessage has not been set for Datachannel data 0
                                                                                                    Onmessage has not been set for Datachannel data 0

the connection is successful because for every keypress on the host-side i get one "Onmessage has not been set for Datachannel data 0" error-message on the client side.

dont know, but maybe cause some of the function you are using from webrtc are deprecated? e.g. Onmessage (https://github.com/pions/webrtc/blob/0043a4bf9adfdf01f8ece009432384a621b56f2c/rtcdatachannel.go#L96) or rtcPeerConnection *RTCPeerConnection (https://github.com/pions/webrtc/blob/0043a4bf9adfdf01f8ece009432384a621b56f2c/rtcdatachannel.go#L107) 🤷‍♂️

maxmcd commented 5 years ago

I was actually unable to get OnMessage to work, but will make the switch soon enough. What is the behavior of the other side of the connection when you get this error?

Sean-Der commented 4 years ago

Hi @sgeisbacher are you still getting this error?

Sorry I didn't get to this sooner, but I am spending the weekend getting the project cleaned up. Please re-open this issue if you are still get this with v0.3.0

thanks!