Skip to content

Commit

Permalink
refactor(misskey-js): fix error where is appeared by enabling
Browse files Browse the repository at this point in the history
  • Loading branch information
KisaragiEffective committed Jul 14, 2024
1 parent a061c87 commit 0f195ed
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/misskey-js/src/streaming.ts
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,9 @@ export abstract class Connection<Channel extends AnyOf<Channels> = any> extends

this.stream = stream;
this.channel = channel;
this.name = name;
if (name !== undefined) {
this.name = name;
}
}

public send<T extends keyof Channel['receives']>(type: T, body: Channel['receives'][T]): void {
Expand Down

0 comments on commit 0f195ed

Please sign in to comment.