Class: IwcConnector

Defined in: lib/Connectors/IwcConnector.coffee

Overview

The Iwc Connector adds support for the Inter-Widget-Communication protocol that is used in the Role-SDK.

You must not use your own IWC client when using this connector!!

See also:

Instance Method Summary

Constructor Details

# (void) constructor(engine, HB, execution_listener, yatta)

Parameters:

  • engine ( Engine ) The transformation engine
  • HB ( HistoryBuffer )
  • execution_listener ( Array<Function> ) You must ensure that whenever an operation is executed, every function in this Array is called.
  • yatta ( YattaFramework ) The Yatta framework.

Instance Method Details

# (void) setIwcHandler(f)

Set your own IWC handler. It will be called after Yatta consumed the data from the received intent.

~ (void) sendIwcIntent intent()
~ (void) sendIwcIntent action_name, content()

Helper for sending iwc intents.

Overloads:

~ (void) sendIwcIntent intent()

Parameters:

  • intent ( Object ) The intent object.

~ (void) sendIwcIntent action_name, content()

Parameters:

  • action_name ( String ) The name of the action that is going to be send.
  • content ( String ) The content that is atteched to the intent.

# (void) send(o) Private

This function is called whenever an operation was executed.

Parameters:

  • o ( Operation ) The operation that was executed.

# (void) receive(o) Private

This function is called whenever an operation was received from another peer.

Parameters:

  • o ( Operation ) The operation that was received.

    Quickly fuzzy find classes, mixins, methods, file:

    Control the navigation frame:

    You can focus and blur the search input: