(token: string)
| 23 | } |
| 24 | |
| 25 | setToken(token: string) { |
| 26 | this.logToOutput("updated token", "Client"); |
| 27 | this.token = token; |
| 28 | if (this.ws) { |
| 29 | this.ws.onclose = () => { }; |
| 30 | this.ws.close(); |
| 31 | } |
| 32 | this.open(); |
| 33 | } |
| 34 | |
| 35 | open() { |
| 36 | let url = this.baseUrl + "/api/ws"; |
no test coverage detected