mirror of https://github.com/Fabio286/antares.git
21 lines
453 B
JavaScript
21 lines
453 B
JavaScript
'use strict';
|
|
import { ipcRenderer } from 'electron';
|
|
|
|
export default class {
|
|
static makeTest (params) {
|
|
return ipcRenderer.invoke('test-connection', params);
|
|
}
|
|
|
|
static checkConnection (params) {
|
|
return ipcRenderer.invoke('check-connection', params);
|
|
}
|
|
|
|
static connect (params) {
|
|
return ipcRenderer.invoke('connect', params);
|
|
}
|
|
|
|
static disconnect (uid) {
|
|
return ipcRenderer.invoke('disconnect', uid);
|
|
}
|
|
}
|