mirror of https://github.com/Fabio286/antares.git
20 lines
408 B
JavaScript
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
|
||
|
}
|