{
  "synLogic": "$api(\"ID\u003d$1\", \n\"BODY\u003d$2\", \n\"ISBINARY\u003d$3\");",
  "help": "The ns_web_websocket_send sends the contents of the body or the specified file to the server overe the specified connection ID.",
  "notes": "You can add ns_think_time API between ns_web_websocket_send steps to allow the protocol to complete send and receive operations.\n",
  "returns": "int",
  "arguments": "\u003ctable class\u003d\"newGuiTable\" style\u003d\"width:100%\" \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             Connection ID over which message is to be send         \u003c/td\u003e     \u003c/tr\u003e  \u003ctr\u003e       \u003ctd\u003eBODY Type\u003c/td\u003e     \u003ctd\u003e  User can choose the body type below for sending the message to the server:      \u003c/td\u003e     \u003c/tr\u003e  \u003ctr\u003e   \u003ctd\u003e \u003c/td\u003e  \u003ctd\u003e   Text: Actual message to be sent over the connection.\u003cbr /\u003e Parameter: Actual message taken from parameter to be sent over the connection.\u003cbr /\u003e  From File: Actual message taken from the file to be sent over the connection.\u003cbr /\u003e \u003c/td\u003e \u003c/tr\u003e   \u003ctr\u003e    \u003ctd\u003eISBINARY\u003c/td\u003e     \u003ctd\u003e             Indicates if the message type is binary(1) or text(0)         \u003c/td\u003e     \u003c/tr\u003e  \u003c/table\u003e",
  "parameterization": "Argument body can be parametrized in this API",
  "component": [
    {
      "id": "$1",
      "type": "TextField",
      "label": "ID",
      "value": "",
      "css": "p-grid p-align-center w-100-p",
      "title": "Enter Connection id",
      "placeHolder": "",
      "style": "",
      "isDisabled": "",
      "labelVarCheckbox": "",
      "argIndex": 0,
      "validate": {
        "inputType": "Number",
        "disabled": false,
        "required": true,
        "min": 0,
        "max": 2147483647
      },
      "quotes": false
    },
    {
      "id": "$2",
      "type": "ADVN_OPT",
      "label": "BODY Type",
      "labelVarCheckbox": "",
      "value": "",
      "css": "p-grid p-align-center w-100-p",
      "title": "Enter Body Type",
      "placeHolder": "",
      "style": "",
      "isDisabled": "",
      "quotes": false,
      "validate": {
        "inputType": "Text",
        "required": true
      }
    },
    {
      "id": "$3",
      "type": "Dropdown",
      "label": "ISBINARY",
      "value": "0",
      "css": "p-grid p-align-center w-100-p",
      "title": "Select ISBINARY",
      "placeHolder": "Select ISBINARY",
      "style": "",
      "isDisabled": "",
      "list": [
        {
          "label": "Yes",
          "value": "1"
        },
        {
          "label": "No",
          "value": "0"
        }
      ],
      "labelVarCheckbox": "",
      "argIndex": 0,
      "validate": {
        "inputType": "text",
        "disabled": false,
        "required": true,
        "min": 0,
        "max": 0
      },
      "quotes": true
    }
  ],
  "name": "ns_web_websocket_send",
  "syntax": "int ns_web_websocket_send(\"ID\u003dValue\", \"BODY\u003dMessage\", \"ISBINARY\u003dValue\")",
  "javaSyntax": "",
  "jsSyntax": "ns_web_websocket_send(\"ID\u003dValue\", \"BODY\u003dMessage\", \"ISBINARY\u003dValue\")",
  "cEx": "flow()\n{ \n  ns_web_websocket_send(\"ID\u003d1\",\"BODY\u003dSample Text Msg\",\"ISBINARY\u003d0\");\n  ns_web_websocket_send(\"ID\u003d1\",\"BODY\u003d$CAVINCLUDE$\u003d/\u003cfilepath\u003e\",\"ISBINARY\u003d0\");\n }\n",
  "javaEx": "",
  "jsEx": "  nsApi.ns_web_websocket_send(\"ID\u003d1\",\"BODY\u003dSample Text Msg\",\"ISBINARY\u003d0\");\n  nsApi.ns_web_websocket_send(\"ID\u003d1\",\"BODY\u003d$CAVINCLUDE$\u003d/\u003cfilepath\u003e\",\"ISBINARY\u003d0\");\n",
  "insertStrC": "ns_web_websocket_send(int page_id);",
  "insertStrJava": "",
  "insertStrJs": "ns_web_websocket_send(page_id: number);",
  "description": "Sends a message over a websocket connection"
}
