Class ScriptMessage

java.lang.Object
com.jbstrap.core.websocket.messages.BaseMessage
com.jbstrap.core.websocket.messages.ScriptMessage

public class ScriptMessage extends BaseMessage
Since:
4.0
Author:
JBStrap
  • Constructor Details

    • ScriptMessage

      public ScriptMessage()
      Creates a Script message, that will execute JavaScript
  • Method Details

    • setScript

      public final ScriptMessage setScript(String script)
      Sets the JavaScript that will be executed
      Parameters:
      script - The JavaScript that will be executed
      Returns:
      The script message
    • getScript

      public final String getScript()
      Gets the assigned JavaScript
      Returns:
      The JavaScript that will be executed