mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-12-06 17:27:59 +00:00
DEBUG STUFF
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user