What is the purpose of the event disconnectionEvent?

Thu Ha

New member
What is the purpose of the event disconnectionEvent?
A. Player demands for disconnection
B. Player disconnects from the channel
C. There is no user interaction
D. Player demands for reconnection
 
Answer: b
Explanation: navigator.onLine is a property that maintains a true/false value (true for online, false for offline). This property is updated whenever the user switches into “Offline Mode”. The event disconnectionEvent is fired when the player disconnects from the channel, whether a result of user interaction or not.
 

Tìm kiếm

Back
Top