Edit Client constructor to take a server URI (#1544)

* edit Client

* fix TS issues + tests

* minor edits

* rename ClientBroadcast -> BroadcastClient
This commit is contained in:
Mayukha Vadari
2021-08-20 13:16:15 -04:00
parent f49b9d4b0e
commit 59396c3f8f
17 changed files with 64 additions and 67 deletions

View File

@@ -578,7 +578,7 @@ describe('Connection', function () {
data: {returnEmptySubscribeRequest: 1}
})
const client = new Client({server: this.client.connection._url})
const client = new Client(this.client.connection._url)
return client.connect().then(
() => {
assert(false, 'Must have thrown!')