-
-
Notifications
You must be signed in to change notification settings - Fork 27
Closed
Labels
Description
For now, there is no way with the client to send data, THEN close the stream when everything is sent. The $client->send('message) is not in a Promise, so doing the following will not (always) work, as the stream may be closed before everything is sent:
$client->send('chain1');
$client->send('chain2');
$client->close();Should it be possible to have a similar function, which would returns a Promise? This way, we would have a clean way to send messages, THEN closing the stream.
For example:
$client->sendInPromise('chain1chain 2')->then(function() use ($client) {$client->close()});Reactions are currently unavailable