From 7c1bea9154e4c24d5bba799fe6b2bb184a95c2aa Mon Sep 17 00:00:00 2001 From: Kevin Viglucci Date: Sat, 11 Dec 2021 16:54:41 -0600 Subject: [PATCH] fix: reference metadata from payload --- packages/rsocket-core/src/RSocketMachine.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/rsocket-core/src/RSocketMachine.js b/packages/rsocket-core/src/RSocketMachine.js index cee2d3b8..ae545bcc 100644 --- a/packages/rsocket-core/src/RSocketMachine.js +++ b/packages/rsocket-core/src/RSocketMachine.js @@ -888,7 +888,7 @@ class RSocketMachineImpl implements RSocketMachine { flags |= FLAGS.COMPLETE; this._subscriptions.delete(streamId); } - if (metadata !== undefined) { + if (payload.metadata !== undefined) { // eslint-disable-next-line no-bitwise flags |= FLAGS.METADATA; }