This project is read-only.

Getting started

Prepare the Development Server of XSockets.NET

First of all you need to change some settings for the Development Server of XSockets.NET 

  1.  Locate the DevelopmentServer folder inside the XSockets folder located in the MVC3 Project
  2.  Open the .config file XSockets.DevelopmentServer.Console.exe.config
  3. Change the IPAddress so that i matches your current IP
<add key="XSocketServerLocation" value="" />

 It could also be an idea (not necessary )  change/add the origin of the website that you will be running the sample on , in the current config i'm allowing traffic to the WebSocketServer from the following origins


<add key="XSocketServerOrigin" value="http://localhost:31194,," />


So by just adding your host to this setting you will allow traffic from another origin i.e http://yourserver:port/

As the current JavaScript is "configured" to connect to the WebSockets on ws:// you also need to change that to make things run.

Change the JavaScript (WebSockets connection etc)

  1. Open the _Layout.cshtml file located in Views/Shared located in the MVC3 Application
  2. Change the ws:// url so that it maches your configuration ( red text below)


rtc = new XSocketsWebRTC("STUN", "ws://"); 


Start the development Server

Start by building your solution,   there is some post-build commands that will "install" the necessary plugins (SignalingHandler) into the \XSocketServerPlugins folder located in the DevelopmentServer folder

  1. Open the DevelopmentServer from Windows Explorer or a command prompt
  2. Start the development sever by executing the XSockets.DevelopmentServer.Console.exe


Run the sample using the XSockets.Debug.Console project

  1. Set the project as startup project
  2. Set the refpath parameter to the "home folder" of you DevelopmentServer (it will load the plugins from there) by changing the value RefPath key in the app.config

    <add key="RefPath" value="C:\Projects\Private\XSockets.WebRTC.Prototype.Shared\XSockets.WebRTC.Prototype.Shared\XSockets\DevelopmentServer" />
  3. Note that you also need tho change XSocketsServerLocation and XSocketsServerOrigin keys as mentioned above.



The example requires a WebRTC capable browser ( its tested on Google Chrome ) and you need to enable WebRTC in chrome , this is described here WebRTC on Chrome


Need help?

Contact Team XSockets.NET on the following email and we will try to assist you 



Last edited Apr 11, 2012 at 1:13 PM by dathor, version 4


No comments yet.