Manager(url:String, opts:Object)
A Manager represents a connection to a given Socket.IO server. One or more Socket instances are associated with the manager. The manager can be accessed through the io property of each Socket instance.
The opts are also passed to engine.io upon initialization of the underlying Socket.
Options: – reconnection whether to reconnect automatically (true) – reconnectionDelay how long to wait before attempting a new reconnection (1000) – reconnectionDelayMax maximum amount of time to wait between reconnections (5000). Each attempt increases the reconnection by the amount specified by reconnectionDelay. – timeout connection timeout before a connect_error and connect_timeout events are emitted (20000)
Events
-
connect. Fired upon a successful connection. -
connect_error. Fired upon a connection error.
Parameters:-
Objecterror object
-
-
connect_timeout. Fired upon a connection timeout. -
reconnect. Fired upon a successful reconnection.
Parameters:-
Numberreconnection attempt number
-
-
reconnect_attempt. Fired upon an attempt to reconnect. -
reconnecting. Fired upon an attempt to reconnect.
Parameters:-
Numberreconnection attempt number
-
-
reconnect_error. Fired upon a reconnection attempt error.
Parameters:-
Objecterror object
-
-
reconnect_failed. Fired when couldn’t reconnect withinreconnectionAttempts
The events above are also emitted on the individual sockets that reconnect that depend on this Manager.
Please login to continue.