Getting started Community Training Tutorials Documentation APIs, AI & Tools
<flow name="sayHello">
<websocket:open-outbound-socket
path="/chat/hello"
config-ref="ws"
target="socketId"
targetValue="#[attributes.socketId]"/>
<websocket:send socketId="#[vars.socketId]" config-ref="ws">
<websocket:content>'Good morning!'</websocket:content>
</websocket:send>
</flow>
<flow name="sayHelloBack">
<websocket:inbound-listener
path="/chat/hello"
config-ref="ws"
outputMimeType="text/plain" />
<websocket:send socketId="#[attributes.socketId]" config-ref="ws">
<websocket:content>#['Good morning ' ++ attributes.socketId ++ '!']</websocket:content>
</websocket:send>
</flow>



