()
| 421 | } |
| 422 | |
| 423 | public close() { |
| 424 | if (this.connection) { |
| 425 | this.connection.ws.close(); |
| 426 | this.authenticationError = undefined; |
| 427 | } |
| 428 | } |
| 429 | |
| 430 | private authenticate(token: string): void { |
| 431 | const authReq: string = JSON.stringify( |
no outgoing calls