status-js-api/test-mailserver.js

16 lines
286 B
JavaScript
Raw Normal View History

var StatusJS = require('./src/index.js');
(async () => {
var status = new StatusJS();
await status.connect("ws://localhost:8546");
status.mailservers.useMailserver("mail-02.gc-us-central1-a.eth.beta", (err, res) => {
2018-11-14 17:51:12 +00:00
status.mailservers.requestMessages();
});
})()