We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0fc720 commit 9393215Copy full SHA for 9393215
packages/socket.io-component-emitter/lib/cjs/index.d.ts
@@ -82,6 +82,11 @@ export class Emitter<
82
*
83
* @param ev Name of the event
84
* @param listener Callback function
85
+ * @reserved
86
+ * - "connect": This event is fired by the Socket instance upon connection **and** reconnection.
87
+ * - "connect_error": This event is fired upon connection failure.
88
+ * - "disconnect": This event is fired upon disconnection.
89
+ * @see [client-api-events](https://socket.io/docs/v4/client-api/#events-1)
90
*/
91
on<Ev extends ReservedOrUserEventNames<ReservedEvents, ListenEvents>>(
92
ev: Ev,
0 commit comments