1
1
mirror of https://github.com/Fabio286/antares.git synced 2025-04-02 20:41:02 +02:00
antares/src/renderer/ipc-api/Connection.js
2020-05-14 15:21:57 +02:00

20 lines
408 B
JavaScript

'use strict';
import { ipcRenderer } from 'electron';
export default class {
static makeTest (params) {
return ipcRenderer.invoke('testConnection', params);
}
static checkConnection (params) {
return ipcRenderer.invoke('checkConnection', params);
}
static connect (params) {
return ipcRenderer.invoke('connect', params);
}
// TODO: refresh
// TODO: disconnect
}