template http: add websocket switcher