Create stream
const stream = await client.streams.create({ externalId: 'my_stream', settings: { template: { name: 'ImmutableTestStream' } }}); Copy
const stream = await client.streams.create({ externalId: 'my_stream', settings: { template: { name: 'ImmutableTestStream' } }});
Delete a stream
Deletes a stream by its identifier, along with all records stored in the stream. If the stream does not exist, the operation succeeds without error (idempotent delete).
await client.streams.delete('my_stream'); Copy
await client.streams.delete('my_stream');
List streams
const streams = await client.streams.list(); Copy
const streams = await client.streams.list();
Retrieve a stream
const stream = await client.streams.retrieve({ externalId: 'my_stream', includeStatistics: true}); Copy
const stream = await client.streams.retrieve({ externalId: 'my_stream', includeStatistics: true});
Create stream