0.5.41 • Published 9 months ago
@cloudpss/message-stream v0.5.41
@cloudpss/message-stream
Message stream type definitions for cloudpss APIs. And plugin for @cloudpss/http-client
, provides cloudpss message stream APIs.
Example
import { HttpClient } from '@cloudpss/http-client';
import { MessageStreamPlugin } from '@cloudpss/message-stream/plugin';
import { interval } from 'rxjs';
import { map, take } from 'rxjs/operators';
const http = new HttpClient({
/* config */
}).use(MessageStreamPlugin());
const stream = await http.stream.create({ type: 'object', comment: 'test', durability: 0 });
await http.stream.write(
stream.token,
stream.type,
interval(100)
.pipe(take(10))
.pipe(map((i) => ({ i }))),
);
await http.stream.freeze(stream.token);
0.5.41
9 months ago
0.5.40
10 months ago
0.5.39
10 months ago
0.5.33
1 year ago
0.5.31
1 year ago
0.5.36
11 months ago
0.5.37
11 months ago
0.5.34
12 months ago
0.5.35
12 months ago
0.5.30
1 year ago
0.5.29
1 year ago
0.5.28
1 year ago
0.5.26
1 year ago
0.5.25
1 year ago
0.5.24
1 year ago
0.5.23
1 year ago
0.5.22
1 year ago
0.5.21
1 year ago
0.5.18
1 year ago
0.5.19
1 year ago
0.5.20
1 year ago
0.5.17
1 year ago
0.5.16
1 year ago
0.5.14
1 year ago
0.5.15
1 year ago
0.5.13
1 year ago
0.5.12
1 year ago
0.5.11
1 year ago
0.5.10
2 years ago
0.5.8
2 years ago
0.5.9
2 years ago
0.4.31
2 years ago
0.4.32
2 years ago
0.4.30
2 years ago
0.4.28
2 years ago
0.4.29
2 years ago
0.4.27
2 years ago
0.4.35
2 years ago
0.4.33
2 years ago
0.4.34
2 years ago
0.5.3
2 years ago
0.5.6
2 years ago
0.5.0
2 years ago
0.5.2
2 years ago
0.5.1
2 years ago
0.4.26
2 years ago
0.4.24
2 years ago
0.4.25
2 years ago
0.4.23
2 years ago
0.4.22
2 years ago
0.4.21
2 years ago
0.4.20
2 years ago