Skip to content

Commit

Permalink
updated to new heroku url for roomedit3dv2 using oauth2
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Tammik committed Jun 14, 2016
1 parent e8f6630 commit 40795bd
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
3 changes: 2 additions & 1 deletion Roomedit3dApp/App.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ class App : IExternalApplication
/// <summary>
/// Socket broadcast URL.
/// </summary>
const string _url = "https://roomedit3d.herokuapp.com:443";
const string _url_v1 = "https://roomedit3d.herokuapp.com:443";
const string _url = "https://roomedit3dv2.herokuapp.com:443";

#region External event subscription and handling
/// <summary>
Expand Down
5 changes: 3 additions & 2 deletions Roomedit3dApp/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
// 2016-05-19 2017.0.0.2 Roomedit3dSocketTest works, receiving messages from roomedit3d web server
// 2016-05-26 2017.0.0.3 Roomedit3dApp socket connection works, receiving messages from roomedit3d web server
// 2016-05-26 2017.0.0.4 Roomedit3dApp transformation works, updating BIM from viewer live
// 2016-06-13 2017.0.0.5 updated to new heroku url for roomedit3dv2 using oauth2
//
[assembly: AssemblyVersion( "2017.0.0.4" )]
[assembly: AssemblyFileVersion( "2017.0.0.4" )]
[assembly: AssemblyVersion( "2017.0.0.5" )]
[assembly: AssemblyFileVersion( "2017.0.0.5" )]
10 changes: 9 additions & 1 deletion Roomedit3dSocketTest/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ namespace Roomedit3dSocketTest
{
class Program
{
const string _url = "https://roomedit3d.herokuapp.com:443";
const string _url_v1 = "https://roomedit3d.herokuapp.com:443";
const string _url = "https://roomedit3dv2.herokuapp.com:443";

static void Main( string[] args )
{
Expand All @@ -25,12 +26,19 @@ static void Main( string[] args )

socket.On( "transform", (data) =>
{
if(null==data)
{
Console.WriteLine( "null data!" );
}
else
{
JObject data2 = JObject.FromObject( data );
Console.WriteLine( string.Format(
"transform: externalId={0} ({1:0.00},{2:0.00},{3:0.00})",
data2["externalId"], data2["offset"]["x"],
data2["offset"]["y"], data2["offset"]["z"] ) );
}
} );

while ( true ) { Thread.Sleep( 100 ); }
Expand Down

0 comments on commit 40795bd

Please sign in to comment.