IIS and WebSocket RRS feed

  • Question

  • User-1831145360 posted

    Hello experts,

    I am using websockets on IIS 8,

    My socket application is communicated two side ,from one side it is listing some feed and to other side it is brodcasting feed to all connected client.

    All of this is working perfect but after some time application stop working because the iis is hang ,

    It will start working properly again once we restart iis or server.

    Please help me to getting this issue resolved.

    Thursday, May 28, 2015 9:19 AM

All replies

  • User1711366110 posted

    It will start working properly again once we restart iis or server.

       As per this case,You can set the interval at which a ping is sent over a WebSocket connection. The default value of pingInterval is 00:00:00.
    So you can modify your configuration file like below :


    you can edit this IIS config through command prompt like below :

    cd \Windows\System32\inetsrv
    appcmd unlock config /section:system.webServer/websocket

    Or through Appcmd.exe like below :

    appcmd.exe set config "Default Web Site" -section:system.webServer/webSocket /enabled:"True" /receiveBufferLimit:"4194304" /pingInterval:"00:00:05"  /commit:apphost

       You must be sure to set the commit parameter to apphost when using AppCmd.exe to configure these settings. This commits the configuration settings to the appropriate location section in the ApplicationHost.config file.

    for more information, Click here to refer the WebSocket in IIS.

    Thursday, May 28, 2015 11:15 PM
  • User71929859 posted

    Not sure why exactly. Did you go through the below documentation?


    Wednesday, June 3, 2015 1:28 AM