Forum C# Using the development server

Using the development server

Postby fox1980 » October 29th, 2010, 12:08 pm

Kind of a basic question, but how do you use the .NET client with the local development server ?
The .NET example connects to the live servers and i haven't found anything in the documentation about this.
fox1980
 
Posts: 206
Joined: April 1st, 2010, 10:39 pm

Re: Using the development server

Postby Oliver » October 29th, 2010, 12:29 pm

Just like you would from AS3, set the DevServer property:
Code: Select all
         // connect to player.io
         var client = PlayerIOClient.PlayerIO.Connect("... game id here...", "public", "oliver", null);
         
         // set the dev server
         client.Multiplayer.DevServer = new ServerEndpoint("localhost",8184);

         // start a room
         var connection = client.Multiplayer.CreateJoinRoom("testroom","bounce",true,null,null);



- Oliver
User avatar
Oliver
.IO
 
Posts: 1159
Joined: January 12th, 2010, 8:29 am

Re: Using the development server

Postby fox1980 » October 29th, 2010, 2:51 pm

It was so obvious i missed it, thank you Oliver. I do get the feeling tough that the .NET documentation is somewhat incomplete compared to the AS3 one, some classes like Multiplayer are not there.
fox1980
 
Posts: 206
Joined: April 1st, 2010, 10:39 pm

Re: Using the development server

Postby Oliver » October 29th, 2010, 3:51 pm

User avatar
Oliver
.IO
 
Posts: 1159
Joined: January 12th, 2010, 8:29 am

Re: Using the development server

Postby fox1980 » October 29th, 2010, 4:10 pm

That's exactly what i mean, it's in the AS3 section. If you look at the .NET documentation here: http://playerio.com/documentation/refer ... netclient/ there is no reference to the multiplayer class. I find it i have to keep switching between AS3 and .NET docs wich is kind of confusing.
fox1980
 
Posts: 206
Joined: April 1st, 2010, 10:39 pm

Re: Using the development server

Postby Oliver » October 29th, 2010, 7:24 pm

Woops, my bad. Noted.
User avatar
Oliver
.IO
 
Posts: 1159
Joined: January 12th, 2010, 8:29 am


Return to C#



cron