WebSocketUpgradeMiddleware

An alternative way to add a WebSocket upgrade to a router via Middleware

WebSocketRouter.swift:111
struct WebSocketUpgradeMiddleware<Context> where Context : WebSocketRequestContext

This is primarily designed to be used with HummingbirdRouter/RouterBuilder but can be used with Router if you add a route immediately after it.