Firebird/Concepts: Difference between revisions
From stonehomewiki
Jump to navigationJump to search
Stonezhong (talk | contribs) (→Models) |
Stonezhong (talk | contribs) (→Models) |
||
| Line 50: | Line 50: | ||
<h3>on_message</h3> | <h3>on_message</h3> | ||
<pre><nowiki> | <pre><nowiki> | ||
on_message(self, | on_message(self, port_name:str, data:Any) | ||
Called when this node receives data. port_name is the name of the port which receive the data, data is the JSON payload of the data. | |||
</nowiki></pre> | </nowiki></pre> | ||
<h3>connect</h3> | |||
<pre><nowiki> | <pre><nowiki> | ||
def connect(self, *dest_ports:Union["Node", "Port"]) -> "Port" | def connect(self, *dest_ports:Union["Node", "Port"]) -> "Port" | ||
