Interface NetworkListener

  • All Superinterfaces:
    com.osrsbots.orb.api.events.framework.EventListener

    public interface NetworkListener
    extends com.osrsbots.orb.api.events.framework.EventListener
    The NetworkListener interface defines methods for handling network-related events. Classes implementing this interface can be registered as listeners to receive notifications about Server client connections and disconnections.
    • Method Detail

      • type

        default com.osrsbots.orb.api.events.framework.ListenerType type()
        Returns the type of this listener, indicating its association with network events.
        Specified by:
        type in interface com.osrsbots.orb.api.events.framework.EventListener
        Returns:
        The ListenerType.NETWORK.
      • clientConnect

        void clientConnect​(SClient client)
        Invoked when a new client connects to the network.
        Parameters:
        client - The connected client.
      • clientDisconnect

        void clientDisconnect​(SClient client)
        Invoked when a client disconnects from the network.
        Parameters:
        client - The disconnected client.