Skip to content

Conversation

FZambia
Copy link
Member

@FZambia FZambia commented Jun 7, 2025

Some refactoring:

  • Makes functions which returned Promise async
  • More type safety internally - removing some ts-ignore marks.

@FZambia FZambia merged commit 024041e into master Jun 10, 2025
3 checks passed
@FZambia FZambia deleted the async_type_safety branch June 10, 2025 18:06
@@ -1659,7 +1654,7 @@ export class Centrifuge extends (EventEmitter as new () => TypedEventEmitter<Cli
next();
return;
}
const error = reply.error;
const error = {code: reply.error.code, message: reply.error.message || '', temporary: reply.error.temporary || false}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing semicolon here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -205,24 +208,26 @@ export class Centrifuge extends (EventEmitter as new () => TypedEventEmitter<Cli
* state and rejects in case of client goes to Disconnected or Failed state.
* Users can provide optional timeout in milliseconds. */
ready(timeout?: number): Promise<void> {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missed one async here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@FZambia FZambia mentioned this pull request Aug 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants