From c5ca3f899b7f3430ea3f88211b319c035c14f6d3 Mon Sep 17 00:00:00 2001 From: omg-xtao <100690902+omg-xtao@users.noreply.github.com> Date: Thu, 1 Sep 2022 21:50:55 +0800 Subject: [PATCH] Create Hello,World.json --- Hello,World.json | 102 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 102 insertions(+) create mode 100644 Hello,World.json diff --git a/Hello,World.json b/Hello,World.json new file mode 100644 index 0000000..b478e42 --- /dev/null +++ b/Hello,World.json @@ -0,0 +1,102 @@ +[ + { + "id": "ec5b944c74b85273", + "type": "tab", + "label": "流程 1", + "disabled": false, + "info": "", + "env": [] + }, + { + "id": "d91f1f5749b65f75", + "type": "websocket in", + "z": "ec5b944c74b85273", + "name": "监听", + "server": "d57d2813420fedfb", + "client": "", + "x": 310, + "y": 260, + "wires": [ + [ + "a51ffb3b573645f0" + ] + ] + }, + { + "id": "86851d8eb8da5792", + "type": "websocket out", + "z": "ec5b944c74b85273", + "name": "发送", + "server": "d57d2813420fedfb", + "client": "", + "x": 1030, + "y": 260, + "wires": [] + }, + { + "id": "a51ffb3b573645f0", + "type": "json", + "z": "ec5b944c74b85273", + "name": "", + "property": "payload", + "action": "obj", + "pretty": false, + "x": 490, + "y": 260, + "wires": [ + [ + "0de599b2880ca02d" + ] + ] + }, + { + "id": "a77d9a69304f3d6a", + "type": "template", + "z": "ec5b944c74b85273", + "name": "", + "field": "payload", + "fieldType": "msg", + "format": "handlebars", + "syntax": "mustache", + "template": "{\n \"action\": \"send_message\",\n \"data\":{\n \"chat_id\": {{payload.chat.id}},\n \"text\": \"Hello, World!\",\n \"reply_to_message_id\": {{payload.id}}\n }\n}", + "output": "str", + "x": 850, + "y": 260, + "wires": [ + [ + "86851d8eb8da5792" + ] + ] + }, + { + "id": "0de599b2880ca02d", + "type": "switch", + "z": "ec5b944c74b85273", + "name": "", + "property": "payload.text", + "propertyType": "msg", + "rules": [ + { + "t": "eq", + "v": "测试下 ws 连接", + "vt": "str" + } + ], + "checkall": "true", + "repair": false, + "outputs": 1, + "x": 670, + "y": 260, + "wires": [ + [ + "a77d9a69304f3d6a" + ] + ] + }, + { + "id": "d57d2813420fedfb", + "type": "websocket-listener", + "path": "/ws/example", + "wholemsg": "false" + } +]