{
  "synLogic": "$api(\"ID\u003d$1\", \n\"URI\u003d$2\");",
  "help": "The ns_web_websocket_connect creates a websocket connection upon which the message is send.",
  "notes": "Origin header gets recorded in script if detected in the HTTP request . To add additibal headers you can use ns_add_header API before this API .",
  "returns": "",
  "arguments": "\u003ctable class\u003d\"newGuiTable\"\u003e \u003ctr\u003e         \u003cth\u003eArgument\u003c/th\u003e     \u003cth\u003eDescription\u003c/th\u003e     \u003c/tr\u003e              \u003ctr\u003e    \u003ctd\u003eID\u003c/td\u003e     \u003ctd\u003e             Unique identify of a connection. It is a unique number and used to send data over created connection.         \u003c/td\u003e     \u003c/tr\u003e  \u003ctr\u003e       \u003ctd\u003eURI\u003c/td\u003e     \u003ctd\u003e             The websocket endpoint in ws:// or wss:// secure websocket) format         \u003c/td\u003e     \u003c/tr\u003e     \u003ctr\u003e    \u003ctd\u003eOrigin\u003c/td\u003e     \u003ctd\u003e              Origin Header gets generated during recording if detected. This is optional         \u003c/td\u003e     \u003c/tr\u003e  \u003c/table\u003e",
  "parameterization": "The URI and Origin arguments can be parameterized.",
  "component": [
    {
      "id": "$1",
      "type": "TextField",
      "label": "ID",
      "value": "",
      "css": "p-grid p-align-center w-100-p",
      "title": "Enter ID",
      "placeHolder": "",
      "style": "",
      "isDisabled": "",
      "labelVarCheckbox": "",
      "argIndex": 0,
      "validate": {
        "inputType": "Number",
        "disabled": false,
        "required": true,
        "min": 0,
        "max": 2147483647
      },
      "quotes": false
    },
    {
      "id": "$2",
      "type": "TextField",
      "label": "URI",
      "value": "",
      "css": "p-grid p-align-center w-100-p",
      "title": "Enter valid url, It should be starts with ws:// or wss://",
      "placeHolder": "",
      "style": "",
      "isDisabled": "",
      "labelVarCheckbox": "",
      "argIndex": 0,
      "validate": {
        "inputType": "Text",
        "disabled": false,
	"pattern": "^(ws|wss)?://.*$",
        "required": true,
        "min": 0,
        "max": 0
      },
      "quotes": false
    }
  ],
  "name": "ns_web_websocket_connect",
  "syntax": "int ns_web_websocket_connect(\"ID\u003dValue\", \"URI\u003dws://host:port/\", \"Header\u003dOrigin:http://host\")",
  "javaSyntax": "",
  "cEx": "flow()\n{\n   ns_web_websocket_connect(\"ID\u003d0\",\"URI\u003dws://host:port/\",\"Header\u003dOrigin:http://host\");\n}\n",
  "javaEx": "",
  "insertStrC": "",
  "insertStrJava": "",
  "description": "Creates a WebSocket connection"
}
