locked
ISAPI + Web Socket + IIS Web Socket RRS feed

  • Question

  • User-1012751336 posted

    How do I upgrade an HTTP connection to a WebSocket using ISAPI?

    Can I just send the upgrade header back then negotiate and communicate using WriteClient and ReadClient?

    If I installed the "WebScoket Protocol"  Server Roles-> Web Server-> Application Development-> WebSocket Protocol
    What does that actually do to the IIS server?  Should that actually be called "install .net WebSocket Protocol?"

    How would one "route" WebSocket upgrades and subsequent conversation to a compiled "C" program?

    Saturday, March 23, 2019 5:31 PM

All replies

  • User-72702933 posted

    Hi iis_dave ,

    What does that actually do to the IIS server? "

    In my opinion, installed the websocket will allow the IIS use websocket protocol to connect with client.

    Should that actually be called "install .net WebSocket Protocol?"

    No, it works with each server-side application which use websocket.

    How would one "route" WebSocket upgrades and subsequent conversation to a compiled "C" program?

    In my opinion, you should let your C program use some library to work with IIS by using WebSocket.

    Like this library: https://github.com/tatsuhiro-t/wslay 

    Best Regards,

    Brando

    Monday, March 25, 2019 1:25 PM