Skip to content

Commit 46fc7dd

Browse files
authored
Fix composite metadata example (#81)
According to comment: #72 (comment) Tested on our own code base.
1 parent bb11e45 commit 46fc7dd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/rsocket-examples/src/CompositeMetadataExample.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ const keepAlive = 60000;
3636
const lifetime = 180000;
3737
const dataMimeType = 'application/octet-stream';
3838
const metadataMimeType = MESSAGE_RSOCKET_COMPOSITE_METADATA.string;
39+
const route = 'test.service';
3940

4041
const client = new RSocketClient({
4142
setup: {
@@ -62,7 +63,7 @@ client.connect().then(socket => {
6263
Buffer.from('Hello World'),
6364
),
6465
MESSAGE_RSOCKET_ROUTING,
65-
Buffer.from('test.service'),
66+
Buffer.from(String.fromCharCode(route.length) + route),
6667
),
6768
})
6869
.subscribe({

0 commit comments

Comments
 (0)