Options
All
  • Public
  • Public/Protected
  • All
Menu

An Action to send a TCP request

example

new TCPAction({
    name:"test",
    host:"0.0.0.0",
    port:8124,
    command:"test"
})

Hierarchy

  • TCPAction

Implements

Constructors

Properties

Methods

Constructors

constructor

  • new TCPAction(__namedParameters: object): TCPAction

Parameters

  • __namedParameters: object
    • command: string

      the data sent to the TCP server

    • host: string
    • name: string
    • port: number

Returns TCPAction

Properties

__variant__

__variant__: string = "TCPAction"

command

command: string

host

host: string

name

name: string | void

port

port: number

Methods

run

Returns Promise<ActionSuccess>

toJSON

  • toJSON(): object

Returns object

  • __variant__: string
  • command: string
  • host: string
  • name: string | void
  • port: number

Static fromJSON

Parameters

  • json: object
    • command: string
    • host: string
    • Optional name?: string
    • port: number

Returns TCPAction

  • Inherited
  • Protected
  • Private
  • Static
  • Module
  • Object
  • Property
  • Function
  • Variable
  • Index
  • Type
  • Class
  • Interface
  • Enum
  • Constructor
  • Getter/Setter
Made with ❤️ by pirix-gh. Documentation generated by TypeDoc.