[英]List of Socket.io Events
Does anyone know what events are built-in in Socket.io ? 有谁知道Socket.io中内置了哪些事件 ?
For example: connection
, disconnect
, join
etc. 例如:
connection
, disconnect
, join
等。
Here is all I found in the official docs: 以下是我在官方文档中找到的所有内容:
socket.io
object: socket.io
对象的客户端事件: connect
. connect
。 Fired upon a successful connection. connect_error
. connect_error
。 Fired upon a connection error. Object
error object Object
错误对象 connect_timeout
. connect_timeout
。 Fired upon a connection timeout. reconnect
. reconnect
。 Fired upon a successful reconnection. Number
reconnection attempt number Number
重新连接尝试号码 reconnect_attempt
. reconnect_attempt
。 Fired upon an attempt to reconnect. reconnecting
. reconnecting
。 Fired upon an attempt to reconnect. Number
reconnection attempt number Number
重新连接尝试号码 reconnect_error
. reconnect_error
。 Fired upon a reconnection attempt error. Object
error object Object
错误对象 reconnect_failed
. reconnect_failed
。 Fired when couldn't reconnect within reconnectionAttempts
reconnectionAttempts
时触发 socket
object: socket
对象的客户端事件: connect
. connect
。 Fired upon connecting. error
. error
。 Fired upon a connection error Object
error data Object
错误数据 disconnect
. disconnect
Fired upon a disconnection. reconnect
. reconnect
。 Fired upon a successful reconnection. Number
reconnection attempt number Number
重新连接尝试号码 reconnect_attempt
. reconnect_attempt
。 Fired upon an attempt to reconnect. reconnecting
. reconnecting
。 Fired upon an attempt to reconnect. Number
reconnection attempt number Number
重新连接尝试号码 reconnect_error
. reconnect_error
。 Fired upon a reconnection attempt error. Object
error object Object
错误对象 reconnect_failed
. reconnect_failed
。 Fired when couldn't reconnect within reconnectionAttempts
reconnectionAttempts
时触发 connection
/ connect
. connection
/ connect
。 Fired upon a connection. Socket
the incoming socket. Socket
输入插座。 For the current version ( 1.3.4
) the reconnect_attempt
and reconnecting
client-side events are synonyms. 对于当前版本(
1.3.4
), reconnect_attempt
和reconnecting
客户端事件是同义词。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.