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