Windows IIS native WebSocket server module.
You do not need to compile anything to use this WebSocket server in your IIS module, just include iiswebsocket.cpp
and iiswebsocket.h
in your IIS module. Everything is contained in the IISWebSocketServer
namespace.
See example.cpp
for a detailed example that echos messages back to the client.
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:
(1) If any part of the source code for this software is distributed, then this
README file must be included, with this copyright and no-warranty notice
unaltered; and any additions, deletions, or changes to the original files
must be clearly indicated in accompanying documentation.
(2) Permission for use of this software is granted only if the user accepts
full responsibility for any undesirable consequences; the authors accept
NO LIABILITY for damages of any kind.
IISWebSocketServer::WebSocketServer
Members:
- Functions
- Variables
- Add your module to IIS
- Click on the name of your server (not a site) in the left Connections panel
- Goto Modules, in the right Actions panel, select Configure Native Modules...
- In the pop-up window click Register... (this button will not appear if you clicked on a site)
- Enter the name you want associated with the module
- Enter/Select the path of your module (.dll) file, click OK
- Your module will now be in the list of modules to enable
- Ensure your module is selected and click OK
- Setup the Application Pool
- Goto Application Pools in the left Connections panel
- Click on Add Application Pool... in the right Actions panel
- Enter a name you want associated with the module
- Under .NET CLR version select No Managed Code
- Under Managed pipeline mode select Classic
- Click OK, your application will now appear in the Application Pools list.
- Select your application and click on Advanced Settings... in the right Actions panel
- If Your module is 32-Bit then select true under Enable 32-Bit Applications
- To give your module admin rights, select LocalSystem under Identity
- Click OK when you are done setting Advanced Settings
- Add the Application to your site
- Right click on the site you wish to add the module to, select Add Application...
- Under Alias enter the path you want to use for the URL
- Select the Application Pool created for the module
- Select the folder your module is in
- Click OK