Skip to content

Using HeadlessInterface

Ethan Snow edited this page Nov 23, 2020 · 6 revisions

What is HeadlessInterface

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!
})
Clone this wiki locally