Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
var server = new ServerBuilder()
.UseTcp(1000)
.UseUdp(5000)
.RegisterPacketHandlerModule<DefaultPacketHandlerModule>()
.RegisterPacketHandlerModule<ExamplePacketHandlerModule>()
.UseZeroFormatter()
.ConfigureLogging(loggingBuilder =>
{
loggingBuilder.AddConsole();
loggingBuilder.SetMinimumLevel(
LogLevel.Debug);
})
.Build();
server.Start();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.