File tree Expand file tree Collapse file tree 2 files changed +13
-5
lines changed
Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " github.com/livekit/protocol " : patch
3+ ---
4+
5+ Allow passing ClientParams to SIP RPC client.
Original file line number Diff line number Diff line change 1414
1515package rpc
1616
17- import (
18- "github.com/livekit/psrpc"
19- )
17+ import "github.com/livekit/psrpc"
2018
2119type SIPClient interface {
2220 SIPInternalClient
@@ -27,11 +25,16 @@ type sipClient struct {
2725}
2826
2927func NewSIPClient (bus psrpc.MessageBus ) (SIPClient , error ) {
30- if bus == nil {
28+ return NewSIPClientWithParams (ClientParams {Bus : bus })
29+ }
30+
31+ func NewSIPClientWithParams (params ClientParams ) (SIPClient , error ) {
32+ if params .Bus == nil {
3133 return nil , nil
3234 }
35+ opts := params .Options ()
3336
34- internalClient , err := NewSIPInternalClient (bus )
37+ internalClient , err := NewSIPInternalClient (params . Bus , opts ... )
3538 if err != nil {
3639 return nil , err
3740 }
You can’t perform that action at this time.
0 commit comments