Skip to content

Commit

Permalink
expose connection option
Browse files Browse the repository at this point in the history
  • Loading branch information
bashar-515 committed Jan 30, 2025
1 parent f22bb6d commit 3a4a9d0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions rpc/dial_options.go
Original file line number Diff line number Diff line change
Expand Up @@ -283,3 +283,10 @@ func WithForceDirectGRPC() DialOption {
o.disableDirect = false
})
}

// WithConn provides a preexisting connection to use. This option forces the webrtcSignalingAnswerer to not dial or manage a connection
func WithConn(conn ClientConn) DialOption {
return newFuncDialOption(func(o *dialOptions) {
o.conn = conn
})
}

0 comments on commit 3a4a9d0

Please sign in to comment.