mirror of
https://github.com/socketio/socket.io.git
synced 2026-01-09 15:08:12 -05:00
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:
@@ -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**
|
||||
|
||||
Reference in New Issue
Block a user