public WebsocketInputReceiver(
     WebsocketApiConfig config,
     IWebHostContainer webHostContainer)
 {
     _config           = config;
     _webHostContainer = webHostContainer;
 }
        public IInputReceiver Create(MahuaInputConfig config)
        {
            var websocketApiConfig = new WebsocketApiConfig
            {
                Ip   = config.Args["host"].ToString(),
                Port = Convert.ToInt32(config.Args["port"]),
            };

            var re = new WebsocketInputReceiver(websocketApiConfig, _webHostContainer);

            return(re);
        }