decrementConnections

abstract fun decrementConnections(inetAddress: InetAddress)

Decrements connections from the provided inetAddress. This function is called when a channel handler is unregistered in Netty. Whenever a handler switches from one to another, the old one will be unregistered first, before the new one is registered. An example of this is moving from login to JS5. The exact flow is:

  1. Register login

  2. Unregister login

  3. Register JS5

  4. Unregister JS5

Parameters

inetAddress

the address to decrement a connection from.