freeshow-api
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

FreeShow API Helper

This makes integrating the FreeShow API very easy.

Example REST:

const API = api("http://localhost:5506")
API.sendREST("next_slide") // POST body: { action: ACTION_ID, ...data }
API.sendHTTP("index_select_slide", { index: 2 }) // HTTP query: ?action=ACTION_ID?data={...}

Example WebSocket:

const API = api("http://localhost:5505")
API.webSocket("name_select_slide", { value: "verse" }) // Socket emit: { action: ACTION_ID, ...data }

Readme

Keywords

Package Sidebar

Install

npm i freeshow-api

Weekly Downloads

8

Version

1.0.3

License

ISC

Unpacked Size

20.6 kB

Total Files

20

Last publish

Collaborators

  • vassbo