fun <T : WebSocketExtension<*>> WebSocketSession.extension(extension: WebSocketExtensionFactory<*, T>): T
Find the extensions using WebSocketExtensionFactory.
IllegalStateException - if the extension is not found.
IllegalStateException
Return extension instance.