Open viglucci opened 2 years ago
Thanks ~
I use[ Buffer.from] api, and website metadata still null , i don't known why
@viglucci, @OlegDokuka, I see this issue is fixed in #200 two months ago. When do you plan to release fixed version?
Hi @genesys-ppotapov, unfortunately, we can't give a firm timeline for our next release at the moment. We are working towards cutting some releases, both for the existing 0.x
, as well as a 1.0.0-alpha
, but I don't have any firm dates to share at this time.
@viglucci, I see. Thank you for the information.
In
_sendStreamPayload
ofRSocketMachineImpl
, whenflags
is created, the flag for present Metadata (M) is not set, which causes thepayload.metadata
value to not be included in the encoded payload later inserializePayloadFrame
.https://github.com/rsocket/rsocket-js/blob/master/packages/rsocket-core/src/RSocketMachine.js#L885
Expected Behavior
Per spec, Metadata (M) flag must be set when the payload contains
metadata
.Actual Behavior
Metadata (M) flag is not set, and the resulting encoded payload does not include
metadata
.Steps to Reproduce
Attempt to send any
metadata
value on a payload fromrequestResponse
orrequestStream
, the value received on the client will benull
.Possible Solution
Your Environment
0.0.27
netty
, ...): n/ajavar -version
) or Node version (node --version
)):v16.13.1
uname -a
): Windows