Skip to content

Commit

Permalink
docs: add deprecation notice for the allSockets() method
Browse files Browse the repository at this point in the history
  • Loading branch information
darrachequesne committed Oct 13, 2022
1 parent 596eb88 commit e6f6b90
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -746,6 +746,9 @@ export class Server<
/**
* Gets a list of socket ids.
*
* @deprecated this method will be removed in the next major release, please use {@link Server#serverSideEmit} or
* {@link Server#fetchSockets} instead.
*
* @public
*/
public allSockets(): Promise<Set<SocketId>> {
Expand Down
4 changes: 3 additions & 1 deletion lib/namespace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,9 @@ export class Namespace<
/**
* Gets a list of clients.
*
* @return self
* @deprecated this method will be removed in the next major release, please use {@link Namespace#serverSideEmit} or
* {@link Namespace#fetchSockets} instead.
*
* @public
*/
public allSockets(): Promise<Set<SocketId>> {
Expand Down

0 comments on commit e6f6b90

Please sign in to comment.