()
| 453 | } |
| 454 | |
| 455 | private getAuthenticatedWebSocket() { |
| 456 | const ws = this.getConnectedWebSocket(); |
| 457 | if (!this.connection?.sessionId) { |
| 458 | if (this.authenticationError) throw new VaasAuthenticationError(); |
| 459 | throw new VaasInvalidStateError( |
| 460 | "Not yet authenticated - connect() was not awaited", |
| 461 | ); |
| 462 | } |
| 463 | return ws; |
| 464 | } |
| 465 | } |
no test coverage detected