getHandler

fun <T : ClientMsgHandler> getHandler(type: Class<T>): T?

Returns a registered handler.

Return

A registered handler on success, or null if the handler could not be found.

Parameters

type

The type of the handler to cast to. Must derive from ClientMsgHandler.

T

The type of the handler to cast to. Must derive from ClientMsgHandler.