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