Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebSocket message consumer incompatible with TracingMessageConsumer #593

Open
zxdxjtu opened this issue Jan 20, 2022 · 1 comment
Open

Comments

@zxdxjtu
Copy link

zxdxjtu commented Jan 20, 2022

In WebSocketLauncherBuilder, WebSocketMessageConsumer is assigned to TracingMessageConsumer by MessageTracer.apply

MessageConsumer outgoingMessageStream = new WebSocketMessageConsumer(session, jsonHandler);
outgoingMessageStream` = wrapMessageConsumer(outgoingMessageStream);

But in MessageTracer.consume, it only consumes StreamMessageConsumer and RemoteEndpoint class, WebSocketMessageConsumer is incompatible

@zxdxjtu
Copy link
Author

zxdxjtu commented Jan 20, 2022

Throws Unknown MessageConsumer type when using WebSocketLauncherBuilder

               if (messageConsumer instanceof StreamMessageConsumer) {
			logString = consumeMessageSending(message, now, date);
		} else if (messageConsumer instanceof RemoteEndpoint) {
			logString = consumeMessageReceiving(message, now, date);
		} else {
			LOG.log(WARNING, String.format("Unknown MessageConsumer type: %s", messageConsumer));
			logString = null;
		}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant