Launching URLs in PureWeb Pixel Streaming Applications

Sending URL from UE4 to PureWeb Client API

In order to launch a URL, you first need to emit a JSON message with the URL as a value from UE4 to your PureWeb through the Pixel Streaming API. The format isn’t very strict so long as you are passing valid JSON:

 

Retrieving the message on the Client

In order to receive the message and launch the URL, you first have to subscribe to the messageSubject object.

You can then use some simple logic to check if a message contains a url key and open the link in a new tab. Your logic may be slightly different depending on how you structured the message: