diff options
author | José Bollo <jose.bollo@iot.bzh> | 2016-05-28 18:52:26 +0200 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2016-05-28 18:52:26 +0200 |
commit | 459396440bf35ace1046723a8efab9a9c22629bf (patch) | |
tree | 8ae84275e9e2bb651fa0b2db259b28af983f5886 /test/token-websock.qml | |
parent | 1a66f6a8c0b213e14bc0b1896bfaa68a5c2a5002 (diff) |
improve naming of sample plugins
Change-Id: I81cbb40c937bc087079d1605d163aea968bb9250
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'test/token-websock.qml')
-rw-r--r-- | test/token-websock.qml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/token-websock.qml b/test/token-websock.qml index d8665c71..38e59362 100644 --- a/test/token-websock.qml +++ b/test/token-websock.qml @@ -7,7 +7,7 @@ Window { property string address_str: "ws://localhost:1234/api?token=123456" property string token_str: "" - property string api_str: "token" + property string api_str: "auth" property string verb_str: "" property var msgid_enu: { "call":2, "retok":3, "reterr":4, "event":5 } property string request_str: "" @@ -91,7 +91,7 @@ Window { id: create_button text: "Create token" onClicked: { - verb_str = "create" + verb_str = "connect" request_str = '[' + msgid_enu.call + ',"99999","' + api_str+'/'+verb_str + '", ]'; if (!websocket.active) websocket.active = true @@ -115,7 +115,7 @@ Window { id: reset_button text: "Reset token" onClicked: { - verb_str = "reset" + verb_str = "logout" request_str = '[' + msgid_enu.call + ',"99999","' + api_str+'/'+verb_str + '", ]'; websocket.sendTextMessage (request_str) } |