The WebSocket DAT receives and parses WebSocket messages. WebSockets are fast an efficient two way communication protocol used by web servers and clients. Each message is parsed and appended as a row in the DAT's table. The table is FIFO "first-in first-out" and limited to parameter-set number of lines. An optional script may be run for each packet received. Secure (tls) websocket servers are also supported.
Connections to different WebSocket sites are supported without requiring manual header setup.
Activeactive - While on, the DAT receives information sent to the network port. While Off, no updating occurs. Data sent to the port is lost.
Network Addressnetaddress - The network address of the server computer. This address is a standard WWW address, such as foo or foo.bar.com. You can put an IP address (e.g. 100.123.45.78). If you put localhost, it means the other end of the connection is on the same computer.
Network Portport - The port in which the DAT will accept messages.
Parameters - Received Messages Page
Callbacks DATcallbacks - The Callbacks DAT will execute once for each message coming in.
Execute fromexecuteloc - ⊞ - Determines the location the script is run from.
Current Nodecurrent - The script is executed from the current node location.
Callbacks DATcallbacks - The script is executed from the location of the DAT specified in the Callbacks DAT parameter.
Specified Operatorop - The script is executed from the operator specified in the From Operator parameter below.
From Operatorfromop - The operator whose state change will trigger the DAT to execute its script when Execute from is set to Specified Operator. This operator is also the path that the script will be executed from if the Execute from parameter is set to Specified Operator.
Clamp Outputclamp - The DAT is limited to 100 messages by default but with Clamp Output, this can be set to anything including unlimited.
Maximum Linesmaxlines - Limits the number of messages, older messages are removed from the list first.
Clear Outputclear - Deletes all lines except the heading. To clear with a python script op("opname").par.clear.pulse()
Bytes Columnbytes - Outputs the raw bytes of the message in a separate column.
Parameters - Common Page
Languagelanguage - ⊞ - Select how the DAT decides which script language to operate on.
Inputinput - The DAT uses the inputs script language.
Nodenode - The DAT uses it's own script language.
Edit/View Extensionextension - ⊞ - Select the file extension this DAT should expose to external editors.
datdat - various common file extensions.
From Languagelanguage - pick extension from DATs script language.
Custom Extensioncustom - Specify a custom extension.
Custom Extensioncustomext - Specifiy the custom extension.
Word Wrapwordwrap - ⊞ - Enable Word Wrap for Node Display.
An Operator Family that manipulates text strings: multi-line text or tables. Multi-line text is often a command Script, but can be any multi-line text. Tables are rows and columns of cells, each containing a text string.
The generic thing that holds an Operator, and includes Flags (display, bypass, lock, render, immune) and its position/size in the network. Whether you "lay down an Operator" or "lay down an Node", you're doing the same thing.
Any of the procedural data operators. OPs do all the work in TouchDesigner. They "cook" and output data to other OPs, which ultimately result in new images, data and audio being generated. See Node.