Marionette JS Client

API Docs for: 1.7.1
Show:

Marionette.CommandStream Class

Command stream accepts a socket or any event emitter that will emit data events

Constructor

Marionette.CommandStream

(
  • socket
)

Parameters:

  • socket EventEmitter

    socket instance.

Item Index

Methods

Properties

Methods

send

(
  • data
)

Writes a command to the socket. Handles conversion and formatting of object.

Parameters:

  • data Object

    marionette command.

stringify

(
  • command
)
String

Parses command into a string to be sent over a tcp socket to marionette.

Parameters:

  • command Object

    marionette command.

Returns:

String:

command as a string.

Properties

commandEvent

String

name of the event this class will emit when a response to a command is received.