'Dancer2::Plugin::WebSocket' provides an interface to Plack::App::WebSocket and allows to interact with the webSocket connections within the Dancer app.
Plack::App::WebSocket, and thus this plugin, requires a plack server that supports the psgi streaming, nonblocking and io. Twiggy is the most popular server fitting the bill.