Game wrapper

Game wrapper

How connect to server-wrapper

  1. Get EW from the server, URL you can get from your stakelogic manger
  2. Load it and apply to HTML dom, check example function
  3. After that you will have gcw object in global scope (window object)
  4. Connect your event handler
  5. Make subscription on events from server

Example how load wrapper

In order to start game on dev02 env with the custom script, use url: https://ngp.dev02-gs-stakelogic.com/play

Example: https://ngp.dev02-gs-stakelogic.com/play?playerId=yu217&gameId=11780096&platform=desktop&gameJs=[gameScriptUrl]

playerId = player with this id must be created on stakelogic test platfrom before this

gameId is provided by StakeLogic

platform - desktop, mobile

HTML
Copy

Example subscription controller

Typescript
Copy

Example usage

Javascript
Copy

###

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard