Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/tntworks/flogo-contrib/trigger/tcpudp

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/tntworks/flogo-contrib/trigger/tcpudp

  • v0.0.0-20220524210504-b0b21a8781fb
  • Source
  • Go
  • Socket score

Version published
Created
Source

TCP/UDP Trigger

This trigger reads/writes data using TCI/UDP networks.

Flogo CLI

flogo install github.com/TNTworks/flogo-contrib/trigger/tcpudp

Configuration

Setting :

NameTypeDescription
networkstringNetwork type. Supported types: tcp,tcp4,tcp6,udp,udp4,udp6 - REQUIRED
hoststringHost IP or DNS resolvable name
portstringPort to listen on - REQUIRED
delimiterstringDelimiter for read and write. If not set, trigger will take line delimiter '\n' as default value
timeoutintegerRead and Write timeout in milliseconds. To disable timeout, set value to 0.

Output:

NameTypeDescription
datastringThe data received from client

Reply:

NameTypeDescription
replystringThe data to be sent back to the client

Examples

{
  "triggers": [
          {
              "ref": "github.com/TNTworks/flogo-contrib/trigger/tcpudp",
              "name": "ReceiveTCPData",
              "settings": {
                  "network": "tcp4",
                  "host": "localhost",
                  "port": "8999",
                  "delimiter": "\n",
                  "timeout": 200
              },
              "id": "ReceiveTCPData",
              "handlers": [
                  {
                      "settings": {},
                      "action": {
                          "ref": "github.com/project-flogo/flow",
                          "settings": {
                              "flowURI": "res://flow:TCP"
                          },
                          "input": {
                              "data": "=$.data"
                          },
                          "output": {
                              "reply": "=$.reply"
                          }
                      },
                      "reply": {
                          "reply": ""
                      }
                  }
              ]
          }
      ]
}

FAQs

Package last updated on 24 May 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc