new Result(data, binding)
Represents a Tcl command result
Parameters:
Name | Type | Description |
---|---|---|
data |
string | raw response data |
binding |
object | Tcl interpreter binding |
- Source:
Methods
data() → {string}
Returns raw resonse data
- Source:
Returns:
Raw response data
- Type
- string
toArray(str) → {Array|null}
Converts a string that represents a Tcl list into a JavaScript array using
native Tcl binding. If a string is not passed in as a parameter, the
internal response data representation will be used.
Parameters:
Name | Type | Description |
---|---|---|
str |
string | null | Tcl list as a string |
- Source:
Returns:
-
When the conversion is successful
- Type
- Array
-
When the conversion fails
- Type
- null