(
private readonly args: Required<
Pick<
RemoteAppServerConnectArgs,
| 'websocketUrl'
| 'clientName'
| 'clientVersion'
| 'channelCapacity'
| 'connectTimeoutMs'
| 'initializeTimeoutMs'
>
> &
Omit<
RemoteAppServerConnectArgs,
| 'websocketUrl'
| 'clientName'
| 'clientVersion'
| 'channelCapacity'
| 'connectTimeoutMs'
| 'initializeTimeoutMs'
>,
)
| 253 | private closed = false |
| 254 | |
| 255 | private constructor( |
| 256 | private readonly args: Required< |
| 257 | Pick< |
| 258 | RemoteAppServerConnectArgs, |
| 259 | | 'websocketUrl' |
| 260 | | 'clientName' |
| 261 | | 'clientVersion' |
| 262 | | 'channelCapacity' |
| 263 | | 'connectTimeoutMs' |
| 264 | | 'initializeTimeoutMs' |
| 265 | > |
| 266 | > & |
| 267 | Omit< |
| 268 | RemoteAppServerConnectArgs, |
| 269 | | 'websocketUrl' |
| 270 | | 'clientName' |
| 271 | | 'clientVersion' |
| 272 | | 'channelCapacity' |
| 273 | | 'connectTimeoutMs' |
| 274 | | 'initializeTimeoutMs' |
| 275 | >, |
| 276 | ) { |
| 277 | this.events = new AsyncEventQueue(args.channelCapacity) |
| 278 | } |
| 279 | |
| 280 | static async connect(args: RemoteAppServerConnectArgs): Promise<RemoteAppServerClient> { |
| 281 | if (args.authToken && !websocketUrlSupportsAuthToken(args.websocketUrl)) { |
nothing calls this directly
no outgoing calls
no test coverage detected