-
-
Notifications
You must be signed in to change notification settings - Fork 3
Using HeadlessInterface
Ethan Snow edited this page Nov 23, 2020
·
6 revisions
Headless interface is a Neos.js plugin that wraps around the Headless Client, Giving you a promise based stdin/stdout and some support functions
const HeadlessInterface = require("@bombitmanbomb/neosjs/Plugins/HeadlessInterface")
const Server = new HeadlessInterface("C:path/to/headless/folder"); // Requires having Mono on Linux
Server.on("ready", (sessionId)=>{
Server.Send("invite bombitmanbomb").then((response)=>console.log(response)) // "Invite Sent!"
console.log(`session ${sessionId} started`) // You can use this with neos.js to get server info!
})