connection Factory
Builds the underlying in.dragonbra.javasteam.networking.steam3.Connection used for connecting to stream.
steamClient = new SteamClient(SteamConfiguration.create(builder -> {
IConnectionFactory connectionFactory = (configuration, protocol) -> {
return null;//custom connection or null to resolve fallback
};
builder.withConnectionFactory(
connectionFactory.thenResolve(IConnectionFactory.DEFAULT));
}));Content copied to clipboard