UNPKG

563 BJavaScriptView Raw
1import * as messages from "./messages.js";
2export const getStates = (connection) => connection.sendMessagePromise(messages.states());
3export const getServices = (connection) => connection.sendMessagePromise(messages.services());
4export const getConfig = (connection) => connection.sendMessagePromise(messages.config());
5export const getUser = (connection) => connection.sendMessagePromise(messages.user());
6export const callService = (connection, domain, service, serviceData) => connection.sendMessagePromise(messages.callService(domain, service, serviceData));