01 / Build the connection
Bring games into your site
Connect your session service, embedded game and browser messages.
The player stays on your site while the game runs inside an iframe. Your backend creates the session; the browser receives the launch URL and handles the supported messages around the game.
From a play button to a game
- Confirm that the player is signed in to your platform.
- Request a game session from your backend.
- Create the JWT with the player and instance details described in Create a player session.
- Set the iframe source to the assigned game URL with that token.
- Wire the supported incoming and outgoing messages for that game release.
Implement the browser side
| Task | Guide |
|---|---|
| Build the launch URL and place the frame | Embed the game |
| Receive updates from the game | Listen to game messages |
| Send supported updates into the frame | Send updates to the game |
Protect the boundary
Generate tokens on your server after validating the player session. Validate the origin, source and shape of browser messages before using their data. Message availability depends on the supplied game client and release; use the contract assigned to your integration.