summaryrefslogtreecommitdiffstats
path: root/scripts/call-sm-binding-method_test.sh
blob: e3f11390b132280223ed4bfae0776e72616a1b6e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

echo "please call method after launch afb-client-demo"
echo "  # ./sm-binding-test.sh"
echo "To get soundmanager api "
echo "example) monitor get {\"apis\":[\"monitor\"]}"
echo "example) soundmanager disconnect {\"mainConnectionID\":1}"
port=12345
token=123456
if test $1;then
port=$1
fi
if test $2; then
token=$2
fi
afb-client-demo ws://localhost:${port}/api?token=${token}