update docs & minor typo.

This commit is contained in:
Miroslav Šedivý 2021-01-29 23:21:14 +01:00
parent eac56533e6
commit 6bf28aa55d

View File

@ -145,7 +145,7 @@
/////////////////////////////
// Public methods
/////////////////////////////
public async setUrl(url: string) {
public setUrl(url: string) {
const httpURL = url.replace(/^ws/, 'http').replace(/\/$|\/ws\/?$/, '')
this.api.setUrl(httpURL)
}