Skip to content

Commit

Permalink
Fix composite metadata example (#81)
Browse files Browse the repository at this point in the history
According to comment: #72 (comment)

Tested on our own code base.
  • Loading branch information
myklt authored Mar 31, 2020
1 parent bb11e45 commit 46fc7dd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/rsocket-examples/src/CompositeMetadataExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ const keepAlive = 60000;
const lifetime = 180000;
const dataMimeType = 'application/octet-stream';
const metadataMimeType = MESSAGE_RSOCKET_COMPOSITE_METADATA.string;
const route = 'test.service';

const client = new RSocketClient({
setup: {
Expand All @@ -62,7 +63,7 @@ client.connect().then(socket => {
Buffer.from('Hello World'),
),
MESSAGE_RSOCKET_ROUTING,
Buffer.from('test.service'),
Buffer.from(String.fromCharCode(route.length) + route),
),
})
.subscribe({
Expand Down

0 comments on commit 46fc7dd

Please sign in to comment.