diff --git a/packages/core/create-cable/index.d.ts b/packages/core/create-cable/index.d.ts index c52b012..87e7dde 100644 --- a/packages/core/create-cable/index.d.ts +++ b/packages/core/create-cable/index.d.ts @@ -84,7 +84,7 @@ export class ActionCableSubscription { channel: ActionCableChannel identifier: string - perform(action: string, payload?: object): void + perform(action: string, payload?: object): Promise send(payload: object): void unsubscribe(): void } diff --git a/packages/core/create-cable/index.js b/packages/core/create-cable/index.js index bed651e..32ced17 100644 --- a/packages/core/create-cable/index.js +++ b/packages/core/create-cable/index.js @@ -199,7 +199,7 @@ class ActionCableSubscription { } perform(action, data = {}) { - this.channel.perform(action, data) + return this.channel.perform(action, data) } send(data) {