Javascipt
JavaScript Integration
JavaScript Game Integration
Follow these 3 steps to integrate your multiplayer JavaScript-based game with Arcadia:
Receive Players
Launch your game via URL parameters including:
Player IDs
Stake amount
Webhook endpoint
Developer token
https://your-game.com?participants=[ { "id": "9375639", "name": "Alice" }, { "id": "1049983", "name": "Bob" } ]¤tPlayerId=9375639 &potAmount=$1.00 &webhookUrl=https://staging.arcadiagames.com/api/webhook-test/room-result &token=AUTH_TOKENProcess Webhook
Your server will receive match results.
Use the data to validate the match and update Arcadia accordingly.
Finalize Match
Return a response containing the result, winner, and confirmation hash.
Development section is in staging right now, will move to production in the coming period.
Last updated