Go to the NetWebsocket Server application folder.

Open the WsServer.Xml document - This is config file for the NetWebSocket Server.


<?xml version="1.0" encoding="utf-8" ?>
  <Server ServerName ="Default" ServerUrlAddress ="" PortNumber ="91" Active ="true" NumberOfConnections="100">
    <Application Name="TestApp" AppPool="AppPool1"  AssemblyName="testSocket" DefaultClass ="TestSession" AssemblyFileName="C:\Project\WebSocketServer\TestSocket\bin\Release\TestSocket.dll"></Application>
    <!--<Application Name="WebSocketApp1" AppPool="AppPool2" AssemblyName="testAssembly2" AssemblyFileName="c:\WsServer\Program\testAssembly2"></Application>-->
    <ApplicationPool Name="AppPool1" SessionExpireSecond="120" PushServiceInterval ="10000">
    <ApplicationPool Name="AppPool2" SessionExpireSecond="120">      


you can  host multiple webservers with differnet urls  in Net WebSocket Server. But each  server should  be pointed to unique IP Address on this server.
ServerName - Name of the Websocket server ( Can be anything)
ServerUrlAddress - Url or IP Address of the server
PortNumber - Listening port number
A server can contains multiple AppPool(s) which contains one or many applications. Each app-pool contains the separate App domain for the applications.
PushServiceInterval =10000 - If you  are implementing push application then you can set the push service interval( in ms) to send the data to client.
SessionExpiredSecond - expired time for the inactive clients.
A server can have multiple application and each application run on the App-pool app-domain.

Application Configuration

 Name - Name of the Application  
      AppPool - Name of the AppPool for this application  
      AssemblyName - Name of the assembly contains this application  
      DefaultClass - Default class for this application in this assembly  
      AssemblyFileName - file name of assembly with full path  

Last edited Jun 15, 2012 at 2:46 AM by chandru0507, version 4


No comments yet.