DEBUG STUFF

This commit is contained in:
Nathan Nichols
2021-10-05 10:52:51 -07:00
parent 403b0c402a
commit 248445acd9
2 changed files with 4 additions and 0 deletions

View File

@@ -216,6 +216,7 @@ export class Connection extends EventEmitter {
* @throws ConnectionError if there is a connection error, RippleError if there is already a WebSocket in existence.
*/
public async connect(): Promise<void> {
console.log('CONNECTING IN CONNECTION.CONNECT')
if (this.isConnected()) {
return Promise.resolve()
}
@@ -325,6 +326,7 @@ export class Connection extends EventEmitter {
if (!this.shouldBeConnected || this.ws == null) {
throw new NotConnectedError()
}
const [id, message, responsePromise] = this.requestManager.createRequest(
request,
timeout ?? this.config.timeout,

View File

@@ -500,6 +500,8 @@ class Client extends EventEmitter {
* @returns A promise that resolves with a void value when a connection is established.
*/
public async connect(): Promise<void> {
console.log('CONNECTING IN CLIENT.CONNECT')
return this.connection.connect()
}