             
             if RTCClientConfig.audioOnly{
                 delegate.rtcClientDidSetLocalMediaStream(client: self, authorized: true, audioOnly: RTCClientConfig.audioOnly)
-                self.socketConnect(serverUrl: serverUrl, roomId: roomId)
+                self.socketConnect(serverUrl: serverUrl, roomId: roomId, params: params)
             }else{
                 
                 let authStatus = AVCaptureDevice.authorizationStatus(forMediaType: AVMediaTypeVideo)

        }
                
        self.roomId = roomId
        socket = WebSocket(url: URL(string: serverUrl + roomId)!)
        if !RTCClientConfig.validateSsl{
            socket?.disableSSLCertValidation = true
        }

        
    }
    
    private func socketConnect(serverUrl: String, roomId: String, params:[String: String]?){
        
        guard delegate != nil else {
            assertionFailure("RTCClient:Not initialized, please call rtcClient.initialize(delegate)")
