@@ -36,7 +36,7 @@ of one to the input port of the other.
36
36
At this point, the nodes only exist in the editor and must be deployed to the
37
37
server.
38
38
39
- Click the Deploy button. Simple as that.
39
+ Click the Deploy button.
40
40
41
41
With the Debug sidebar tab selected, click the Inject button. You should see
42
42
numbers appear in the sidebar. By default, the Inject node uses the number of
@@ -47,10 +47,11 @@ useful with that.
47
47
48
48
The Function node allows you to pass each message though a JavaScript function.
49
49
50
- Wire the Function node in between the Inject and Debug nodes. You may need to
51
- delete the existing wire (select it and hit delete on the keyboard).
50
+ Delete the existing wire (select it and hit delete on the keyboard).
52
51
53
- Double-click on the Function node to bring up the edit dialog. Copy the follow
52
+ Wire the Function node in between the Inject and Debug nodes.
53
+
54
+ Double-click on the Function node to bring up the edit dialog. Copy the following
54
55
code into the function field:
55
56
56
57
{% highlight javascript %}
@@ -62,7 +63,7 @@ msg.payload = date.toString();
62
63
return msg;
63
64
{% endhighlight %}
64
65
65
- Click Ok to close the edit dialog and then click the deploy button.
66
+ Click Done to close the edit dialog and then click the deploy button.
66
67
67
68
Now when you click the Inject button, the messages in the sidebar will be more
68
69
readable time stamps.
0 commit comments