Skip to content

Commit 9809405

Browse files
committed
formatting
1 parent 1ac5116 commit 9809405

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

src/connector/connector.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,14 @@ export abstract class Connector {
8181
abstract presenceChannel(channel: string): PresenceChannel;
8282

8383
/**
84-
* Leave the given channel and its private & presence channels.
84+
* Leave the given channel, as well as its private and presence variants.
8585
*/
8686
abstract leave(channel: string): void;
8787

8888
/**
8989
* Leave the given channel.
9090
*/
91-
abstract leaveOne(channel: string): void;
91+
abstract leaveChannel(channel: string): void;
9292

9393
/**
9494
* Get the socket_id of the connection.

src/connector/null-connector.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export class NullConnector extends Connector {
4848
}
4949

5050
/**
51-
* Leave the given channel and its private & presence channels.
51+
* Leave the given channel, as well as its private and presence variants.
5252
*/
5353
leave(name: string): void {
5454
//
@@ -57,7 +57,7 @@ export class NullConnector extends Connector {
5757
/**
5858
* Leave the given channel.
5959
*/
60-
leaveOne(name: string): void {
60+
leaveChannel(name: string): void {
6161
//
6262
}
6363

src/connector/pusher-connector.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,20 +81,20 @@ export class PusherConnector extends Connector {
8181
}
8282

8383
/**
84-
* Leave the given channel and its private & presence channels.
84+
* Leave the given channel, as well as its private and presence variants.
8585
*/
8686
leave(name: string): void {
8787
let channels = [name, 'private-' + name, 'presence-' + name];
8888

8989
channels.forEach((name: string, index: number) => {
90-
this.leaveOne(name);
90+
this.leaveChannel(name);
9191
});
9292
}
9393

9494
/**
9595
* Leave the given channel.
9696
*/
97-
leaveOne(name: string): void {
97+
leaveChannel(name: string): void {
9898
if (this.channels[name]) {
9999
this.channels[name].unsubscribe();
100100

src/connector/socketio-connector.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,20 +94,20 @@ export class SocketIoConnector extends Connector {
9494
}
9595

9696
/**
97-
* Leave the given channel and its private & presence channels.
97+
* Leave the given channel, as well as its private and presence variants.
9898
*/
9999
leave(name: string): void {
100100
let channels = [name, 'private-' + name, 'presence-' + name];
101101

102102
channels.forEach(name => {
103-
this.leaveOne(name);
103+
this.leaveChannel(name);
104104
});
105105
}
106106

107107
/**
108108
* Leave the given channel.
109109
*/
110-
leaveOne(name: string): void {
110+
leaveChannel(name: string): void {
111111
if (this.channels[name]) {
112112
this.channels[name].unsubscribe();
113113

0 commit comments

Comments
 (0)