Skip to content
George Michaelides edited this page Mar 8, 2015 · 12 revisions

Server Setup

###Start a server

      var server = new GemServer(ProfileName: "GemProfile"
                                 ServerName: "GemServer", 
                                 Port: 14242,
                                 MaxConnections: 10,
                                 Password: "123456"
                                 RequirePassword: true );
      server.RunAsync();

###Register a command

      GemServer
     .RegisterCommand(command:"echo",
                      description:"Display Messages",
                      requiresAuthorization: false,
                      callback:(host, senderConnection, command,args) 
                      => host.SendToAll(args[0]));

Clone this wiki locally