New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@lazyfi-learning/gamesdk

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lazyfi-learning/gamesdk

SDK for integrating lazyfi games

latest
npmnpm
Version
0.1.2
Version published
Maintainers
2
Created
Source

@lazyfi-learning/gamesdk

Library used to integrate lazyfi games with the website

npm version npm downloads

Setup

npm install @lazyfi-learning/gamesdk

Website setup

import { WebSDK } from '@lazyfi-learning/gamesdk'

const websdk = new WebSDK({
    baseURL: 'https://lazyfi.gg' // http://localhost:8080 for dev environment
})

Game setup

import { GameSDK } from '@lazyfi-learning/gamesdk'

const websdk = new GameSDK({
    baseURL: 'https://lazyfi.gg' // http://localhost:8080 for dev environment
})

Events

Subsribe to events using

${websdk|gamesdk}.events.on(event, callbackFn, context)

Event names

  • start - dispatched on game session start
  • stop - dispatched on game session stop
  • question - dispached after receiving question requested by the game
  • answer - dispatched after sending answer to any question

Keywords

lazyfi

FAQs

Package last updated on 17 Oct 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts