websocketout

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 24, 2026 License: MIT Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

type WebSocketOutNode struct {
	*nodebase.BaseNode
	// contains filtered or unexported fields
}

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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL