afb-client-demo: Add option to keep running 09/14609/1
authorJosé Bollo <jose.bollo@iot.bzh>
Fri, 22 Jun 2018 12:00:43 +0000 (14:00 +0200)
committerJosé Bollo <jose.bollo@iot.bzh>
Fri, 22 Jun 2018 12:00:43 +0000 (14:00 +0200)
commit211343c77944333d550301da4d757e343e5f5390
tree3a16f8d12cbf035674aaf205df5da2b30e88a295
parent525e9eaa644ca92fad23adfbb7c3119ae8b57a30
afb-client-demo: Add option to keep running

This option allows to keep the client running
even when its input is closed. This will be used for
tests and for reporting because it allows to write:

  echo 'monitor trace {"add":{"api":"*","request":"*","event":"*","session":"*","global":"*"}}' |
  afb-client -k $WSURL > logfile

to capture all events.

Change-Id: If1c7804556190fd8ec9388260fe014c50b498b1d
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
src/main-afb-client-demo.c