package
0.0.0-20210805150241-449d0e09d70b
Repository: https://github.com/project-flogo/websocket.git
Documentation: pkg.go.dev

# README

WebSocket Client

This trigger provides your Microgateway application with the ability to subscribe to websocket message events and invokes dispatch with the contents of the message.

Schema

Settings, Outputs and Handlers:

{
 "settings":[
    {
      "name": "url",
      "type": "string"
    }
  ],
  "outputs": [
    {
      "name": "content",
      "type": "any"
    }
  ],
  "handler": {
    "settings": []
  }
}

Settings

KeyDescription
urlThe websocket url to connect to.

Outputs

KeyDescription
contentWebsocket request payload

Example Configurations

{
  "name": "tibco-wssub",
  "id": "flogo-WSMessageTrigger",
  "ref": "github.com/project-flogo/websocket/trigger/wsclient",
  "settings": {
    "url": "ws://localhost:8000/ws"
  },
  "handlers": [
    {
      "settings": {
      },
      "actions": [
        {
          "id": "microgateway:Pets"
        }
      ]
    }
  ]
}

# Packages

No description provided by the author

# Structs

Factory for creating triggers.
Output is the outputs for the websocket trigger.
Settings for the websocket client trigger.
Trigger trigger struct.