Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 480 Bytes

README.md

File metadata and controls

18 lines (13 loc) · 480 Bytes

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 }