what
add websocket middleware (not working) and refactor
Use a WS compatible server