2.3.1 • Published 4 months ago

libmeshctrl v2.3.1

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
4 months ago

LibMeshCtrl

Library for remotely interacting with a MeshCentral server instance

Installation

yarn add libmeshctrl

Usage

This module is implemented as a primarily asynchronous library, mostly through the Session class, which is exported as default. Because the library is asynchronous, you must wait for it to be initialized before interacting with the server. The preferred way to do this is to use the static and asynchronous create function which is exposed on the Session class:

import { Session } from "LibMeshCtrl"
let session = await Session.create(url, {options})

session.list_users()
...

However, if you prefer to instantiate the object yourself, you can simply use the initialized property:

let session = new Session(url, {options})
await session.initialized

Session Parameters

url: URL of meshcentral server to connect to. Should start with either "ws://" or "wss://".

options: POJO of optional parameters

OptionDescriptionNote
userName of user to connect withCan also be username generated from token
domainDomain on server to connect to
passwordPassword with which to connectCan also be password generated from token
loginkeyKey from already handled loginOverrides username/password
proxy"url:port" to use for proxy server
tokenLogin tokenThis appears to be superfluous

API

API is documented in the API Docs

2.3.1

4 months ago

2.3.0

7 months ago

2.2.1

10 months ago

2.2.0

11 months ago

2.1.0

11 months ago

2.0.0

12 months ago

1.3.0

12 months ago

1.2.4

12 months ago