Skip to content

Commit 6ffe961

Browse files
committed
add runner to readme
1 parent b633760 commit 6ffe961

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

packages/stream_feed/README.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,19 @@ const apiKey = 'my-API-key';
4242
const secret = 'my-API-secret';
4343

4444
// Instantiate a new client (server side)
45-
var client = StreamFeedClient.connect(apiKey, secret: secret);
45+
var client = StreamFeedClient.connect(apiKey, secret: secret, runner: Runner.server);
4646

4747
// Optionally supply the app identifier and an options object specifying the data center to use and timeout for requests (15s)
4848
client = StreamFeedClient.connect(apiKey,
49-
secret: secret,
50-
appId: 'yourappid',
51-
options: StreamHttpClientOptions(
52-
location: Location.usEast, connectTimeout: Duration(seconds: 15)));
49+
secret: secret,
50+
runner: Runner.server,
51+
appId: 'yourappid',
52+
runner: Runner.server,
53+
options: StreamHttpClientOptions(
54+
location: Location.usEast,
55+
connectTimeout: Duration(seconds: 15),
56+
),
57+
);
5358

5459
// Create a token for user with id "the-user-id"
5560
final userToken = client.frontendToken('the-user-id');

0 commit comments

Comments
 (0)