Skip to content

Latest commit

 

History

History
20 lines (16 loc) · 547 Bytes

section40.4.md

File metadata and controls

20 lines (16 loc) · 547 Bytes

Section 40.4: Using Socket.io with IISNode

<handlers>
  <add name="iisnode-socketio" path="server.js" verb="*" modules="iisnode" />
</handlers>

<rule name="SocketIO" patternSyntax="ECMAScript">
  <match url="socket.io.+"/>
  <action type="Rewrite" url="server.js"/>
</rule>

If you are using IIS 8, you'll need to disable your webSockets setting in your Web. config in addition to adding the above handler and rewrite rules. This is unnecessary in IIS 7 since there is no webSocket support.

<webSocket enabled="false" />