API ReferenceGE Extensionsflowgraphnodesthread
Receive Message (Flowgraph Node)
- **Node Name:** `Receive Message`
Overview
- Node Name:
Receive Message - Category: (default)
- File:
extensions/flowgraph/nodes/thread/receiveMessage.lua
Receives a message from another running flowgraph project. Used for inter-project communication.
Pin Schema
Input Pins
| Pin | Type | Description |
|---|---|---|
flow | flow | In flow (fixed) |
reset | flow | Impulse to reset the node for receiving again (fixed) |
isNetwork | bool | If networked (hidden, fixed) |
name | string | Filter for message names - only exact matches (fixed) |
Custom input pins can be added (supports string, number, bool, any, table, vec3, quat, color).
Output Pins
| Pin | Type | Description |
|---|---|---|
flow | flow | Passes through input flow (fixed) |
receiving | flow | Impulse when a new message arrives (fixed) |
received | flow | High after a message has been received (fixed) |
Custom output pins can be added to extract message data fields.
Behavior
init()- Enables pin saving and custom output pins.onThreadMessageProcess(message)- Captures the incoming message (if not already done).work()- When flow is active, name is set, and a message exists:- Copies message fields to matching output pins
- Sets
receivingimpulse for one frame - Sets
receivedto true permanently - Marks as
done(won't receive again until reset)
- Reset - The
resetimpulse clearsdone,receiving, andreceivedflags.
How It Works
- Set the
namefilter to match the expected message name. - Add custom output pins matching the data fields you expect.
- When a message arrives,
receivingfires for one frame and data appears on output pins. - Use
resetto allow receiving another message.
-- Sender project sends: { name = "score_update", score = 100 }
-- Receiver has: name = "score_update", custom out pin "score"
-- On receive: pinOut.score = 100, receiving = true (one frame)Key Dependencies
self.mgr.modules.thread- Thread module delivers messages
Additional Methods
C:_executionStarted()
Called when graph execution starts. Used for initialization/reset.
C:drawMiddle(builder, style)
Custom ImGui drawing in the middle section of the node in the editor.
Parameters:
builderstyle
See Also
- Load Project (Flowgraph Node) - Related reference
- Send Message (Flowgraph Node) - Related reference
- FlowGraph Guide - Guide