Click here to Skip to main content
14,032,238 members
Rate this:
Please Sign up or sign in to vote.
I did some research and did not find anything, ISAPI is old but I have a lot of things and stable, I wanted to know if I can use websocket on it.

I did not want to use a specific port for the Server. I want everything running behind IIS on port 80 or 443.

What I have tried:

I searched on google and here at codeproject.
Updated 9-Mar-19 5:28am
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

This doesn't make sense. ISAPI is used for writing extensions and filters to IIS.

Web sockets is used for TCP/IP communication between a client and a non-web server listening on a port. That port can NOT be port 80 or 443 because those are taken up by the HTTP server.

What are you trying to do with ISAPI and web sockets?
rfl.souza 28-Sep-18 8:57am
Hello, thank you for replying.

I use ISAPI extensively, creating my own APIs and responding to web requests.

I understand that I can not open another server on the same IIS port, so I wanted to use it inside ISAPI using pECB->ReadClient and pECB->WriteClient.

The idea is to use the websocket together in my WebAPI software.

One option would be to create Module for IIS, but I would have to change a lot in my program.

The only thing I found was this link:
Dave Kreskowiak 28-Sep-18 9:09am
Well, you either have to pass customized urls to the web server app, which will do the talking with your ISAPI extensions, or you have to use different ports with web sockets. Those are your choices.
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

Hi I can't find anything on isape websocket either. I do think this is a viable way to go. The way I see it is the browser is able to do it - then the server has to comply with the browsers calls. So if you handle the "UPGRADE" in your isapi then why not?!?

I am going to work on this and would be happy to let you know what I come up with.
rfl.souza 11-Mar-19 15:50pm
I tried a bit but it does not evolve, I was trying to trap it in HttpExtensionProc, and do the handshake with the libwshandshake lib. But the problem is to keep the socket connected and open the same communication channel :(

If you evolve into something, I'll be very grateful. where are you from? I'm from Brazil.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Cookies | Terms of Service
Web01 | 2.8.190419.4 | Last Updated 9 Mar 2019
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100