Click here to Skip to main content
15,887,988 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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.
Posted
Updated 9-Mar-19 5:28am

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?
 
Share this answer
 
Comments
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: https://forums.iis.net/t/1190078.aspx?Adapting+a+Native+Module+to+handle+the+Websocket+protocol+RFC6455+for+IIS+8%20+
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.
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.
 
Share this answer
 
Comments
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.
Thanks.

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900