File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed
Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -42,14 +42,19 @@ const apiKey = 'my-API-key';
4242const 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)
4848client = 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"
5560final userToken = client.frontendToken('the-user-id');
You can’t perform that action at this time.
0 commit comments