View Complete Thread
  • Proper way for IIS8 nativemodule to close Websocket in C++?

    Apr 22, 2014 09:25 AM|garykibble|LINK

    I've figured out websocket multi-fragment read/write with a C++ nativemodule but it's not clear to me the "correct" way for the server to end a socket session. Also which server-side functions below are necessary if the client closes the websocket?

    The IWebSocketContext interface has three functions for websocket closure:

    IWebSocketContext::SendConnectionClose()

    IWebSocketContext::CancelOutstandingIO(); 

    IWebSocketContext::CloseTcpConnection()

    Should all three be used? In what order? 

    websocket module iis8 native