Class ScriptMessage
java.lang.Object
com.jbstrap.core.websocket.messages.BaseMessage
com.jbstrap.core.websocket.messages.ScriptMessage
- Since:
- 4.0
- Author:
- JBStrap
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal String
Gets the assigned JavaScriptfinal ScriptMessage
Sets the JavaScript that will be executedMethods inherited from class com.jbstrap.core.websocket.messages.BaseMessage
getMessageId, getMessageType
-
Constructor Details
-
ScriptMessage
public ScriptMessage()Creates a Script message, that will execute JavaScript
-
-
Method Details
-
setScript
Sets the JavaScript that will be executed- Parameters:
script
- The JavaScript that will be executed- Returns:
- The script message
-
getScript
Gets the assigned JavaScript- Returns:
- The JavaScript that will be executed
-