To get WebSync running in Unity (http://unity3d.com/), you may have to use the WWW class (http://docs.unity3d.com/Documentation/ScriptReference/WWW.html) for HTTP transfers instead of the typical HttpWebRequest class used in typical .NET applications.
Thankfully, an anonymous developer has put together an HttpTransfer class that does just this. To use it, simply instruct WebSync's factory model to use the new WebSyncHttpTransfer class (before connecting):
HttpTransferFactory.CreateHttpTransfer = () =>
{
return new WebSyncHttpTransfer();
};
If you are using the Unity Web Player, you will want to ensure you have a proper crossdomain.xml in your web root to avoid potential security exceptions related to cross-domain requests.