mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-20 12:15:51 +00:00
Lints src/client (#1577)
* lint backoff * lint wsWrapper * remove rangeset - not used * split out connection.ts classes * lint requestManager * lint connectionManager * lint most of connection * fix most of client * lint broadcastClient * resolve more linter issues * resolve magic numbers * clean up more linting * resolve rest of issues * fix tests * fix browser tests * fix tests after rebase * respond to comments * fix dependency cycles
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
import { Client, BroadcastClient } from "xrpl-local";
|
||||
|
||||
import { PortResponse } from "./mockRippled";
|
||||
|
||||
const port = 34371;
|
||||
const baseUrl = "ws://testripple.circleci.com:";
|
||||
|
||||
@@ -15,7 +17,7 @@ function setup(this: any, port_ = port) {
|
||||
})
|
||||
.then((got) => {
|
||||
return new Promise<void>((resolve, reject) => {
|
||||
this.client = new Client(baseUrl + got.port);
|
||||
this.client = new Client(baseUrl + (got as PortResponse).result.port);
|
||||
this.client.connect().then(resolve).catch(reject);
|
||||
});
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user