Skip to content
Discussion options

You must be logged in to vote

Use emitOn to switch back to the original thread solve the problem.

        Context context = Vertx.currentContext();
        return Uni.createFrom().future(session.getAsyncRemote().sendBinary(byteBuf.nioBuffer()))
                .invoke(() -> logger.infof("%s sent %s", id, session))
                .emitOn(command -> context.runOnContext(x -> command.run()));

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by SetoKaiba
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
1 participant