3 $R/bin/afb-client -s -e $WSURL <<EOC
8 hello-v2 PiNgJsOn {"well":"formed","json":[1,2,3,4.5,true,false,null,"oups"]}
9 hello-v2 call {"api":"hello","verb":"pingjson","args":[{"key1":"value1"}]}
10 hello-v2 callsync {"api":"hello","verb":"pingjson","args":[{"key1":"value1"}]}
11 hello-v2 subcall {"api":"hello","verb":"pingjson","args":[{"key1":"value1"}]}
12 hello-v2 subcall {"api":"hello","verb":"subcall","args":{"api":"hello","verb":"pingjson","args":[{"key1":"value1"}]}}
13 hello-v2 subcallsync {"api":"hello","verb":"pingjson","args":[{"key1":"value1"}]}
14 hello-v2 subcallsync {"api":"hello","verb":"subcall","args":{"api":"hello","verb":"pingjson","args":[{"key1":"value1"}]}}
15 hello-v2 subcall {"api":"hello","verb":"subcallsync","args":{"api":"hello","verb":"pingjson","args":[{"key1":"value1"}]}}
16 hello-v2 subcallsync {"api":"hello","verb":"subcallsync","args":{"api":"hello","verb":"pingjson","args":[{"key1":"value1"}]}}
17 hello-v2 eventadd {"tag":"ev1","name":"event-A"}
18 hello-v2 eventadd {"tag":"ev2","name":"event-B"}
19 hello-v2 eventpush {"tag":"ev1","data":[1,2,"hello"]}
20 hello-v2 eventpush {"tag":"ev2","data":{"item":0}}
21 hello-v2 eventsub {"tag":"ev2"}
22 hello-v2 eventpush {"tag":"ev1","data":[1,2,"hello"]}
23 hello-v2 eventpush {"tag":"ev2","data":{"item":0}}
24 hello-v2 eventsub {"tag":"ev1"}
25 hello-v2 subcall {"api":"hello","verb":"eventpush","args":{"tag":"ev1","data":[1,2,"hello"]}}
26 hello-v2 subcall {"api":"hello","verb":"eventpush","args":{"tag":"ev2","data":{"item":0}}}
27 hello-v2 subcallsync {"api":"hello","verb":"eventpush","args":{"tag":"ev1","data":[1,2,"hello"]}}
28 hello-v2 subcallsync {"api":"hello","verb":"eventpush","args":{"tag":"ev2","data":{"item":0}}}
29 hello-v2 eventunsub {"tag":"ev2"}
30 hello-v2 eventpush {"tag":"ev1","data":[1,2,"hello"]}
31 hello-v2 eventpush {"tag":"ev2","data":{"item":0}}
32 hello-v2 eventdel {"tag":"ev1"}
33 hello-v2 eventpush {"tag":"ev1","data":[1,2,"hello"]}
34 hello-v2 eventpush {"tag":"ev2","data":{"item":0}}
35 hello-v2 broadcast {"name":"xev","data":"true"}
36 hello-v2 broadcast {"tag":"ev2","data":"true"}
37 hello-v2 eventdel {"tag":"ev2"}
38 hello-v2 hasperm {"perm":"some-permissison"}
44 hello-v2 setctx "some-text-0"
45 hello-v2 setctxif "some-text-1"
47 hello-v2 setctx "some-text-2"
50 hello-v2 verbose {"level":2,"message":"hello"}