Update template file to support websocket