Does anyone know what events are built-in in Socket.io ?
For example: connection
, disconnect
, join
etc.
Here is all I found in the official docs:
socket.io
object: connect
. Fired upon a successful connection. connect_error
. Fired upon a connection error. Object
error object connect_timeout
. Fired upon a connection timeout. reconnect
. Fired upon a successful reconnection. Number
reconnection attempt number reconnect_attempt
. Fired upon an attempt to reconnect. reconnecting
. Fired upon an attempt to reconnect. Number
reconnection attempt number reconnect_error
. Fired upon a reconnection attempt error. Object
error object reconnect_failed
. Fired when couldn't reconnect within reconnectionAttempts
socket
object: connect
. Fired upon connecting. error
. Fired upon a connection error Object
error data disconnect
. Fired upon a disconnection. reconnect
. Fired upon a successful reconnection. Number
reconnection attempt number reconnect_attempt
. Fired upon an attempt to reconnect. reconnecting
. Fired upon an attempt to reconnect. Number
reconnection attempt number reconnect_error
. Fired upon a reconnection attempt error. Object
error object reconnect_failed
. Fired when couldn't reconnect within reconnectionAttempts
connection
/ connect
. Fired upon a connection. Socket
the incoming socket. For the current version ( 1.3.4
) the reconnect_attempt
and reconnecting
client-side events are synonyms.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.