Skip to content

Commit

Permalink
comment: write js docs in on
Browse files Browse the repository at this point in the history
  • Loading branch information
nayounsang committed Sep 25, 2024
1 parent d0fc720 commit 9393215
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/socket.io-component-emitter/lib/cjs/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@ export class Emitter<
*
* @param ev Name of the event
* @param listener Callback function
* @reserved
* - "connect": This event is fired by the Socket instance upon connection **and** reconnection.
* - "connect_error": This event is fired upon connection failure.
* - "disconnect": This event is fired upon disconnection.
* @see [client-api-events](https://socket.io/docs/v4/client-api/#events-1)
*/
on<Ev extends ReservedOrUserEventNames<ReservedEvents, ListenEvents>>(
ev: Ev,
Expand Down

0 comments on commit 9393215

Please sign in to comment.