extensionOrNull
fun <T : WebSocketExtension<*>> WebSocketSession.extensionOrNull(extension: WebSocketExtensionFactory<*, T>): T?
Content copied to clipboard
Search the extensions using WebSocketExtensionFactory.
Return
extension instance or null
if the extension is not installed.