javalin / javalin

A simple and modern Java and Kotlin web framework

Home Page:https://javalin.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WebSocket RequestLogger `onUpgrade`

LoonyRules opened this issue · comments

Describe the feature
It would be nice if the WebSocket Request Logger had a onUpgrade method that would be invoked when a HTTP request tried to be upgraded. I'd like this method to be in a similar signature as the http handler method, where the Context of the HTTP request and the executionTimeMs is passed through.

This method should be invoked whether the HTTP Request is successfully upgraded, or not.

Additional context
This could potentially resolve #2218