Difference between revisions of "WebSocket DAT"
(WebSocket DAT Auto Create) |
(TD Editor) |
||
Line 1: | Line 1: | ||
− | + | {{Summary | |
− | {{Summary|OPfamily=DAT | + | |OPfamily=DAT |
− | + | |OPlabel=WebSocket | |
− | + | |OPfilter=False | |
− | + | |OPtype=websocket | |
− | | | + | |long=The WebSocket DAT receives and parses [http://en.wikipedia.org/wiki/WebSocket 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. The WebSocket DAT also supports the [http://en.wikipedia.org/wiki/Socket.io Socket.IO] up to version '''0.9.16''' handshake protocol. Secure (tls) websocket servers are also supported. |
− | + | Connections to different websocket sites are supported without requiring manual header setup. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | | | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | {{Menuitem|Itemlabel=Current Node | + | |
− | + | See also: [[TCP/IP DAT]] | |
− | + | ||
− | + | Example project: [http://www.derivative.ca/Forum/viewtopic.php?p=30301 chat with WebSockets] | |
− | + | |OPclass=websocketDAT_Class | |
− | + | |short=The WebSocket DAT receives and parses [http://en.wikipedia.org/wiki/WebSocket WebSocket] messages. | |
− | + | |OPlicense=Non-Commercial | |
− | + | }} | |
− | + | {{ParameterPage | |
− | + | |OPfamily=DAT | |
− | + | |Pagename=Connect | |
− | + | |Pagesummary= | |
− | + | |items= | |
− | + | {{ParToggle | |
− | + | |OPfamily=DAT | |
− | + | |OPtype=websocket | |
− | }} | + | |Parname=active |
− | {{ParNodeRef|OPfamily=DAT|OPtype=websocket|Parname=fromop | + | |Parorder=0 |
− | + | |Parsummary= | |
− | |Parsummary= | + | |Parlabel=Active |
− | + | }} | |
− | }} | + | {{ParString |
− | {{ParToggle|OPfamily=DAT|OPtype=websocket|Parname=clamp | + | |OPfamily=DAT |
− | + | |OPtype=websocket | |
− | |Parsummary= | + | |Parname=netaddress |
− | + | |Parorder=1 | |
− | }} | + | |Parsummary= |
− | + | |Parlabel=Network Address | |
− | + | }} | |
− | + | {{ParInteger | |
− | + | |OPfamily=DAT | |
− | + | |OPtype=websocket | |
− | {{ParButton|OPfamily=DAT|OPtype=websocket|Parname=clear | + | |Parname=port |
− | + | |Parorder=2 | |
− | |Parsummary= | + | |Parsummary= |
− | + | |Parlabel=Network Port | |
− | }} | + | }} |
− | {{ParToggle|OPfamily=DAT|OPtype=websocket|Parname=bytes | + | {{ParToggle |
− | + | |OPfamily=DAT | |
− | |Parsummary= | + | |OPtype=websocket |
− | + | |Parname=socketio | |
− | }} | + | |Parorder=3 |
− | + | |Parsummary= | |
− | }} | + | |Parlabel=Socket.io Format (0.9.16) |
− | + | }} | |
− | {{:DAT Generator Common Page}} | + | {{ParString |
− | {{History}} | + | |OPfamily=DAT |
− | {{DATNavBox|OPfamily=DAT}} | + | |OPtype=websocket |
− | {{#invoke:Category|list|DATs}} | + | |Parname=socketioaddress |
+ | |Parorder=4 | ||
+ | |Parsummary= | ||
+ | |Parlabel=Socket.io Address | ||
+ | }} | ||
+ | |||
+ | }} | ||
+ | {{ParameterPage | ||
+ | |OPfamily=DAT | ||
+ | |Pagename=Received Messages | ||
+ | |Pagesummary= | ||
+ | |items= | ||
+ | {{ParDatRef | ||
+ | |OPfamily=DAT | ||
+ | |OPtype=websocket | ||
+ | |Parname=callbacks | ||
+ | |Parorder=0 | ||
+ | |Parsummary= | ||
+ | |Parlabel=Callbacks DAT | ||
+ | }} | ||
+ | {{ParMenu | ||
+ | |OPfamily=DAT | ||
+ | |OPtype=websocket | ||
+ | |Parname=executeloc | ||
+ | |Parorder=1 | ||
+ | |Parsummary= | ||
+ | |Paritems= | ||
+ | {{Menuitem | ||
+ | |Itemlabel=Current Node | ||
+ | |OPfamily=DAT | ||
+ | |Parname=executeloc | ||
+ | |Itemsummary= | ||
+ | |Itemname=current | ||
+ | }} | ||
+ | {{Menuitem | ||
+ | |Itemlabel=Callbacks DAT | ||
+ | |OPfamily=DAT | ||
+ | |Parname=executeloc | ||
+ | |Itemsummary= | ||
+ | |Itemname=callbacks | ||
+ | }} | ||
+ | {{Menuitem | ||
+ | |Itemlabel=Specified Operator | ||
+ | |OPfamily=DAT | ||
+ | |Parname=executeloc | ||
+ | |Itemsummary= | ||
+ | |Itemname=op | ||
+ | }} | ||
+ | |||
+ | |Parlabel=Execute from | ||
+ | }} | ||
+ | {{ParNodeRef | ||
+ | |OPfamily=DAT | ||
+ | |OPtype=websocket | ||
+ | |Parname=fromop | ||
+ | |Parorder=2 | ||
+ | |Parsummary= | ||
+ | |Parlabel=From Operator | ||
+ | }} | ||
+ | {{ParToggle | ||
+ | |OPfamily=DAT | ||
+ | |OPtype=websocket | ||
+ | |Parname=clamp | ||
+ | |Parorder=3 | ||
+ | |Parsummary= | ||
+ | |Parlabel=Clamp Output | ||
+ | }} | ||
+ | {{ParInteger | ||
+ | |OPfamily=DAT | ||
+ | |OPtype=websocket | ||
+ | |Parname=maxlines | ||
+ | |Parorder=4 | ||
+ | |Parsummary= | ||
+ | |Parlabel=Maximum Lines | ||
+ | }} | ||
+ | {{ParButton | ||
+ | |OPfamily=DAT | ||
+ | |OPtype=websocket | ||
+ | |Parname=clear | ||
+ | |Parorder=5 | ||
+ | |Parsummary= | ||
+ | |Parlabel=Clear Output | ||
+ | }} | ||
+ | {{ParToggle | ||
+ | |OPfamily=DAT | ||
+ | |OPtype=websocket | ||
+ | |Parname=bytes | ||
+ | |Parorder=6 | ||
+ | |Parsummary= | ||
+ | |Parlabel=Bytes Column | ||
+ | }} | ||
+ | |||
+ | }} | ||
+ | {{:DAT Generator Common Page | ||
+ | }} | ||
+ | {{History | ||
+ | }} | ||
+ | {{DATNavBox | ||
+ | |OPfamily=DAT | ||
+ | }} | ||
+ | {{#invoke:Category | ||
+ | |list|DATs}} |
Revision as of 15:03, 5 September 2017
- Invalid title: ""
Summary[edit]
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. The WebSocket DAT also supports the Socket.IO up to version 0.9.16 handshake protocol. Secure (tls) websocket servers are also supported. Connections to different websocket sites are supported without requiring manual header setup.
See also: TCP/IP DAT
Example project: chat with WebSockets
Parameters - Page
Template:ParToggle Template:ParString Template:ParInteger Template:ParToggle Template:ParString
Parameters - Page
Template:ParDatRef Template:ParMenu Template:ParNodeRef Template:ParToggle Template:ParInteger Template:ParButton Template:ParToggle
Parameters - Common Page
Language language
- ⊞ - Select how the DAT decides which script language to operate on.
- Input
input
- The DAT uses the inputs script language.
- Node
node
- The DAT uses it's own script language.
Edit/View Extension extension
- ⊞ - Select the file extension this DAT should expose to external editors.
- dat
dat
- various common file extensions.
- From Language
language
- pick extension from DATs script language.
- Custom Extension
custom
- Specify a custom extension.
Custom Extension customext
- Specifiy the custom extension.
Word Wrap wordwrap
- ⊞ - Enable Word Wrap for Node Display.
- Input
input
- The DAT uses the inputs setting.
- On
on
- Turn on Word Wrap.
- Off
off
- Turn off Word Wrap.
TouchDesigner Build:
DATs |
---|
• • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • |
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.