Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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