ServerContainer wsContainer = WebSocketServerContainerInitializer.configureContext(context);
String inputTransformClassName =
wsProps.getProperty("ws.inputTransformClass", "us.b3k.kafka.ws.transforms.Transform");
String outputTransformClassName =
wsProps.getProperty("ws.outputTransformClass", "us.b3k.kafka.ws.transforms.Transform");
KafkaConsumerFactory consumerFactory =
KafkaConsumerFactory.create(consumerProps, Class.forName(outputTransformClassName));
KafkaProducerFactory producerFactory =
KafkaProducerFactory.create(producerProps, Class.forName(inputTransformClassName));
KafkaWebsocketEndpoint.Configurator.CONSUMER_FACTORY = consumerFactory;