Skip to content

Commit 275cd1b

Browse files
docs: add EVENT_CONNECT_TIMEOUT in the migration guide
1 parent 6514041 commit 275cd1b

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/site/markdown/migrating_from_1_x.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -106,21 +106,21 @@ Here is the updated list of events emitted by the Manager:
106106

107107
| Name | Description | Previously (if different) |
108108
| ---- | ----------- | ------------------------- |
109-
| open | successful (re)connection | - |
110-
| error | (re)connection failure or error after a successful connection | connect_error |
111-
| close | disconnection | - |
112-
| reconnect_attempt | reconnection attempt | reconnect_attempt & reconnecting | - |
113-
| reconnect | successful reconnection | - |
114-
| reconnect_error | reconnection failure | - |
115-
| reconnect_failed | reconnection failure after all attempts | - |
109+
| `Manager.EVENT_OPEN` | successful (re)connection | - |
110+
| `Manager.EVENT_ERROR` | (re)connection failure or error after a successful connection | `Manager.EVENT_CONNECT_ERROR` & `Manager.EVENT_CONNECT_TIMEOUT` |
111+
| `Manager.EVENT_CLOSE` | disconnection | - |
112+
| `Manager.EVENT_RECONNECT_ATTEMPT` | reconnection attempt | `Manager.EVENT_RECONNECT_ATTEMPT` & `Manager.EVENT_RECONNECTING` (duplicate) |
113+
| `Manager.EVENT_RECONNECT` | successful reconnection | - |
114+
| `Manager.EVENT_RECONNECT_ERROR` | reconnection failure | - |
115+
| `Manager.EVENT_RECONNECT_FAILED` | reconnection failure after all attempts | - |
116116

117117
Here is the updated list of events emitted by the Socket:
118118

119119
| Name | Description | Previously (if different) |
120120
| ---- | ----------- | ------------------------- |
121-
| connect | successful connection to a Namespace | - |
122-
| connect_error | connection failure | error |
123-
| disconnect | disconnection | - |
121+
| `Socket.EVENT_CONNECT` | successful connection to a Namespace | - |
122+
| `Socket.EVENT_CONNECT_ERROR` | connection failure | `Socket.EVENT_ERROR` |
123+
| `Socket.EVENT_DISCONNECT` | disconnection | - |
124124

125125

126126
And finally, here's the updated list of reserved events that you cannot use in your application:

0 commit comments

Comments
 (0)