Skip to content

Error request to Spring-boot-Rsocket (Auth JWT) #228

Answered by viglucci
velesUst asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @velesUst ,

You are likely going to want to work with composite metadata and set your metadataMimeType to MESSAGE_RSOCKET_COMPOSITE_METADATA.string.

The important bit is going to be the routing metadata, which is what tells the server how to route the incoming RSocket request.

I haven't dug through the server example code you linked on StackOverflow, but just by looking at your example code, you would supply the routing metadata with your requestStream as so:

Also, the example project you listed though references signin as a request/response so you actually don't want requestStream, but requestResponse.

socket
  .requestResponse({
    data: Buffer.from(JSON.stringify({
      user_id: '…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@velesUst
Comment options

Answer selected by velesUst
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants