Thanks to visit codestin.com
Credit goes to github.com

Skip to content

refactor: Improve handshake resiliency of peer #95

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

Merged
merged 23 commits into from
Jan 31, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Log dTLS transport state
  • Loading branch information
kylecarbs committed Jan 31, 2022
commit 65c58c375ff879329ff98e4686853d24c8b4b2bc
4 changes: 4 additions & 0 deletions peer/conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,10 @@ func (c *Conn) init() error {
c.opts.Logger.Debug(context.Background(), "signaling state updated",
slog.F("state", signalState))
})
c.rtc.SCTP().Transport().OnStateChange(func(dtlsTransportState webrtc.DTLSTransportState) {
c.opts.Logger.Debug(context.Background(), "dtls transport state updated",
slog.F("state", dtlsTransportState))
})
c.rtc.OnICECandidate(func(iceCandidate *webrtc.ICECandidate) {
if iceCandidate == nil {
return
Expand Down