@gosynthschool/game-utils
v1.3.2
Published
Shared utilities for Synthesis simulations.
Downloads
3
Readme
Usage
Installation
yarn add @gosynthschool/game-utils
Tools
Poll to move to the active game
Add this to your client code:
import { pollGoSynth } from "@gosynthschool/game-utils";
import jwt_decode from "jwt-decode";
//get the current game id
let decodedToken: User = jwt_decode(jwt);
//pass it into the poller
pollGoSynth(decodedToken.game);
Development
To publish this package
any commit to main will release a new version? right? its not working right now.
After publishing, to get the latest in your project
yarn upgrade @gosynthschool/game-utils