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;
KafkaWebsocketEndpoint.Configurator.PRODUCER = producerFactory.getProducer();
wsContainer.addEndpoint(KafkaWebsocketEndpoint.class);
server.start();
server.join();