Skip to content

Commit

Permalink
Set void return types
Browse files Browse the repository at this point in the history
  • Loading branch information
nolancaster committed Jul 10, 2018
1 parent c045a69 commit 6a0485e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/cable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ export class Cable {
/**
* Close the connection.
*/
disconnect() {
return this.baseCable.disconnect();
disconnect(): void {
this.baseCable.close();
}
}

Expand All @@ -43,17 +43,17 @@ export class Channel {
});
}

/**
/**t
* Close the connection.
*/
send(data: any) {
send(data: any): void {
this.baseChannel.send(data);
}

/**
* Close the connection.
*/
unsubscribe() {
unsubscribe(): void {
this.cable.baseCable.subscriptions.remove(this.baseChannel);
}
}

0 comments on commit 6a0485e

Please sign in to comment.