Documentation
¶
Overview ¶
Package websocketout contains the websocketOut node implementation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WebSocketOutConfig ¶
type WebSocketOutConfig struct {
// Target selects "session" (write back on the connection named by
// the message's sessionId metadata) or "broadcast" (write to every
// open session of this workflow's websocketIn nodes).
Target string `json:"target"`
}
WebSocketOutConfig holds configuration for the websocketOut node.
type WebSocketOutNode ¶
WebSocketOutNode writes the message Data to websocket sessions held in the workflow's shared WSSessions registry.
func NewWebSocketOutNode ¶
func NewWebSocketOutNode(node nodestore.NodeInterface, config *WebSocketOutConfig, host nodebase.NodeHost) *WebSocketOutNode
NewWebSocketOutNode creates a new websocketOut node
func (*WebSocketOutNode) Execute ¶
func (n *WebSocketOutNode) Execute(ctx context.Context, input nodestore.MessageInterface) (nodestore.MessageInterface, error)
Execute writes Data as a text message (binary for []byte) to the selected session(s) and returns the input unchanged.
func (*WebSocketOutNode) Validate ¶
func (n *WebSocketOutNode) Validate() error
Validate checks the websocketOut node configuration