Structs

Structs

Make Web Socket File Data

Web Socket File Data

Overview

Creates a struct reference to a file using a directory path and file name. This struct is used across various systems for handling file-based operations such as loading or saving files. It serves as a general-purpose file descriptor, simplifying access to files on the user's machine.

Inputs

  • File Directory – The full system path to the folder containing the file.

  • File Name – The name of the file, including its extension (e.g., example.json, output.txt).

Outputs

  • Json Http File Data – A unified struct representing the target file. It can be used in nodes related to reading, writing, uploading, or processing both JSON and binary file types. This is the core struct used for file-based operations in this plugin.


Make Web Socket Settings Web Socket Pro

Web Socket Settings Web Socket Pro

Overview

Creates a WebSocket settings struct that defines optional subprotocols and HTTP-like headers used during the initial WebSocket handshake. This struct is typically used when initiating a connection to a WebSocket server.

Use this node to customize the connection behaviour, especially when connecting to servers that require specific headers or support particular subprotocols.

Inputs

  • Protocols – An array of strings representing WebSocket subprotocols. These are sent during the connection request and help the server determine how to interpret communication.

  • Headers – A map of key-value string pairs to include as HTTP-style headers during the WebSocket handshake. Useful for passing authentication tokens, custom metadata, or client info.

Outputs

  • WebSocket Settings – A unified struct containing the protocols and headers to use when establishing a WebSocket connection. This is passed into Create New WebSocket Request nodes to configure the initial handshake.

Last updated

Was this helpful?