docs: add upgrade event in the documentation

Reference: 898bd1c9df/lib/socket.ts (L285)

Related: https://github.com/socketio/socket.io-website/issues/369
This commit is contained in:
Damien Arrachequesne
2023-02-14 15:25:57 +01:00
parent 898bd1c9df
commit 535b068670

View File

@@ -338,6 +338,14 @@ A representation of a client. _Inherits from EventEmitter_.
- Fired when an error occurs.
- **Arguments**
- `Error`: error object
- `upgrading`
- Fired when the client starts the upgrade to a better transport like WebSocket.
- **Arguments**
- `Object`: the transport
- `upgrade`
- Fired when the client completes the upgrade to a better transport like WebSocket.
- **Arguments**
- `Object`: the transport
- `flush`
- Called when the write buffer is being flushed.
- **Arguments**