Skip to content

Commit

Permalink
refactor(botonic-core): add type that return postMessage function
Browse files Browse the repository at this point in the history
  • Loading branch information
Iru89 committed Dec 11, 2024
1 parent 06a333f commit c07f82e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/botonic-core/src/hubtype-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ export class HubtypeService {
})
}

async postMessage(user: SessionUser, message: any) {
async postMessage(user: SessionUser, message: any): Promise<void> {
try {
await this.init(user)
await axios.post(
Expand Down Expand Up @@ -257,6 +257,7 @@ export class HubtypeService {

destroyPusher(): void {
if (!this.pusher) return

this.pusher.disconnect()
this.pusher.unsubscribe(this.pusherChannel)
this.pusher.unbind_all()
Expand Down

0 comments on commit c07f82e

Please sign in to comment.