Skip to main content
Skip table of contents

Receive Data in Webpage from Unreal App

In this guide, we’ll show you how to receive data from an Unreal Engine (UE) application (sender) into your webpage (receiver) using the Eagle 3D Streaming SDK.

 

 

Live Streaming URL

You can test this workflow using the live streaming URL below:

https://e3ds.github.io/pixelstreaming-sdk/e3ds_streaming_FE.html

Demo Project GitHub Repository: https://github.com/e3ds/pixelstreaming-sdk

 

 

Follow the steps below:

Step 1. Add Callback Function in scripts_demo.js

Open your scripts_demo.js file and add this callback function:

JS
e3ds_controller.callbacks.onResponseFromUnreal = function(descriptor) {
    console.log("Message sent from Unreal:", descriptor);
};

 

image-20260604-061807.png

Figure 1: Add onResponseFromUnreal callback in scripts_demo.js

 

Explanation

Code

Meaning

e3ds_controller.callbacks.onResponseFromUnreal

This callback is triggered when the webpage receives data from the Unreal app.

function(descriptor)

descriptor contains the message or data sent from Unreal.

console.log("UnrealResponse:", descriptor);

Prints the received Unreal message in the browser console for testing/debugging.

For testing, we added console.log() to print the message sent from Unreal in the browser console.

You can later use this received message as per your requirements, for example:

  • Show it on the webpage

  • Trigger a frontend action

  • Update UI

  • Open a modal

  • Store the data

  • Process commands from Unreal

Step 2. Send Message from Unreal

Now send a message from the Unreal app.

In our demo app, we have an Open URL button inside the Unreal application.

Click the Open URL button in the Unreal app.

When the button is clicked, Unreal sends a message to the webpage.

image-20260604-061905.png

Figure 2: Click the button inside the Unreal app to send a message to the webpage

Step 3. Check Browser Console Log

Open the browser Developer Tools.

You can open Developer Tools by pressing:

CODE
F12

or:

CODE
Right click on webpage → Inspect → Console

Now check the Console tab.

If the message is received successfully from Unreal, you should see a log like this:

CODE
UnrealResponse: <message from Unreal>

This confirms that the webpage successfully received data from the Unreal application.

image-20260604-062055.png

Figure 3: Browser console showing the message received from Unreal

Expected Result

After completing the steps:

  1. Unreal sends a message.

  2. The webpage receives the message.

  3. The message prints in the browser console.

Example console output:

CODE
Message sent from Unreal: {"cmd":"openUrl","value":"https://eagle3dstreaming.com"}

Demo Video

You can watch the demo video below to see the final result:

https://youtu.be/imqx9bJ71j8

Troubleshooting

Issue

Possible Cause

Solution

No message appears in browser console

Callback function is not added or not loaded

Make sure onResponseFromUnreal is added in scripts_demo.js.

e3ds_controller is not defined

SDK is not loaded yet

Make sure the SDK script is loaded before using e3ds_controller.callbacks.

Unreal button clicked but no browser response

Unreal may not be sending the message correctly

Check the Unreal Blueprint/message-sending setup.

 


Need help?

If you need any assistance, feel free to reach out through any of the following channels:

🛠️ Support Portal: Contact Our Support Team

💬 Discord Community (Faster Support): Join Our Discord Community

📧 Email Support: support@eagle3dstreaming.com

 

🆓 Get Started for free

 

 

Follow us on:

Facebook | GitHub | LinkedIn | YouTube

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.