# Vapor 4.33.0 released!

**URL:** <https://forum.devtalk.com/t/vapor-4-33-0-released/3479>\
**Category:** Backend Official News\
**Tags:** newsbot, vapor\
**Created:** [27 October 2020 12:06 UTC](https://forum.devtalk.com/t/vapor-4-33-0-released/3479 "2020-10-27T12:06:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![NewsBot](https://forum.devtalk.com/user_avatar/forum.devtalk.com/newsbot/32/1114_2.png) [@NewsBot](https://forum.devtalk.com/u/NewsBot)\
**Post date:** [27 October 2020 12:06 UTC](https://forum.devtalk.com/t/vapor-4-33-0-released/3479/1 "2020-10-27T12:06:03Z")

</div>

[Vapor](https://devtalk.com/vapor) 4.33.0 has been released.

> [@](#):
>
> ###### _This patch was authored by @code28 and released by @siemensikkema._
> 
> Adds support for a custom implementation of `shouldUpgrade` for websockets. This can be used to switch to specific subprotocols or to deny upgrading by returning `nil`.
> 
> ```swift
> routes.webSocket("authedecho", shouldUpgrade: { req in
> guard req.auth.has(User.self) else {
> return req.eventLoop.future(nil)
> }
> return req.eventLoop.future([:])            
> }, onUpgrade: { req, ws in
> print(ws)
> })
> 
> ```

Link: [Release Provide option to implement `shouldUpgrade` on webSockets · vapor/vapor · GitHub](https://github.com/vapor/vapor/releases/tag/4.33.0)
