Commit c305232
Nedunchezhiyan-M
Improve WebSocket error messages for CONNECTING state
The send() and ping() methods throw "INVALID_STATE_ERR" which is
an opaque error code that doesn't tell the developer what went wrong.
Updated to descriptive messages that explain the actual issue,
matching the style used by browser WebSocket implementations.1 parent 8bac1df commit c305232
1 file changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
184 | | - | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
185 | 187 | | |
186 | 188 | | |
187 | 189 | | |
| |||
208 | 210 | | |
209 | 211 | | |
210 | 212 | | |
211 | | - | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
212 | 216 | | |
213 | 217 | | |
214 | 218 | | |
| |||
0 commit comments