Alternatively, the app.add_websocket_route method can be used instead of the
decorator:

asyncdeffeed(request,ws):passapp.add_websocket_route(feed,'/feed')

Handlers for a WebSocket route is invoked with the request as first argument, and a
WebSocket protocol object as second argument. The protocol object has send
and recv methods to send and receive data respectively.

You could setup your own WebSocket configuration through app.config, like