Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
@casual-simulation/aux-vm-client
Advanced tools
A set of utilities required to securely run an AUX as a client.
A set of utilities required to run an AUX as a client.
npm install @casual-simulation/aux-vm-client
import { RemoteAuxChannel } from '@casual-simulation/aux-vm-client';
import { AuxUser, AuxConfig } from '@casual-simulation/aux-vm';
export class MyCustomChannel extends RemoteAuxChannel {
constructor(defaultHost: string, user: AuxUser, config: AuxConfig) {
super(defaultHost, user, config, {});
}
// Override the _handleServerEvents function
// to handle events sent from a remote device.
protected async _handleServerEvents(events: DeviceAction[]) {
await super._handleServerEvents(events);
let filtered = events.filter(
e => e.device.roles.indexOf(SERVER_ROLE) >= 0
);
let mapped = <BotAction[]>filtered.map(e => e.event);
if (filtered.length > 0) {
await this.sendEvents(mapped);
}
}
}
V0.10.4
onAnyAction()
action tag to intercept and change actions before they are executed.
onAnyAction()
runs for every action, including when a bot is created, changed, or deleted.type
property.
type
property is a string that indicates what the action does.add_bot
: A bot should be added (i.e. created).remove_bot
: A bot should be removed (i.e. deleted).update_bot
: A bot should be updated.apply_state
: The given bot state should be applied. (i.e. a set of bots should be created/updated)shout
: A shout should be executed.show_toast
: A toast message should be shown on the device.show_barcode
: A barcode should be shown.tween_to
: The camera should be tweened to show a bot.that
is an object with the following properties:
action
: The action that is going to be executed.onAnyAction()
on the config bot.
action.reject(action)
: Prevents the given action from being performed. Returns the rejection action.action.perform(action)
: Adds the given action to the performance queue so it will be performed. This can be used to re-enable an action after it has been rejected (you can also reject the rejection action). Returns the action that will be performed.local
bot which is stored in the browser's local storage.
local
bot is a bot that is unique to the device and channel.getBot("#id", "local")
.onShout()
to onAnyListen()
.onListen()
which is an alternative to onAnyListen()
that is only called on the targeted bots.plater.toast("message", durationNum)
.FAQs
A set of utilities required to securely run an AUX as a client.
The npm package @casual-simulation/aux-vm-client receives a total of 79 weekly downloads. As such, @casual-simulation/aux-vm-client popularity was classified as not popular.
We found that @casual-simulation/aux-vm-client demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.