Showing the changes to libraries/script-engine/src/ScriptEngine.cpp (1 of 4 files). Show all
Unified · Split
| @@ -39,6 +39,7 @@ · 38 unmodified lines | |||
| 39 | #include "TypedArrays.h" | 39 | #include "TypedArrays.h" |
| 40 | #include "XMLHttpRequestClass.h" | 40 | #include "XMLHttpRequestClass.h" |
| 41 | #include "WebSocketClass.h" | 41 | #include "WebSocketClass.h" |
| 42 | #include "WebSocketServerClass.h" | ||
| 42 | 43 | ||
| 43 | #include "SceneScriptingInterface.h" | 44 | #include "SceneScriptingInterface.h" |
| 44 | 45 | ||
| @@ -347,6 +348,9 @@ void ScriptEngine::init() { · 302 unmodified lines | |||
| 347 | QScriptValue webSocketConstructorValue = newFunction(WebSocketClass::constructor); | 348 | QScriptValue webSocketConstructorValue = newFunction(WebSocketClass::constructor); |
| 348 | globalObject().setProperty("WebSocket", webSocketConstructorValue); | 349 | globalObject().setProperty("WebSocket", webSocketConstructorValue); |
| 349 | 350 | ||
| 351 | QScriptValue webSocketServerConstructorValue = newFunction(WebSocketServerClass::constructor); | ||
| 352 | globalObject().setProperty("WebSocketServer", webSocketServerConstructorValue); | ||
| 353 | |||
| 350 | QScriptValue printConstructorValue = newFunction(debugPrint); | 354 | QScriptValue printConstructorValue = newFunction(debugPrint); |
| 351 | globalObject().setProperty("print", printConstructorValue); | 355 | globalObject().setProperty("print", printConstructorValue); |
| 352 | 356 | ||