A callback that will be invoked when an authentication token is needed to authenticate with VTube Studio. Return null from this function if no token is available yet.
A callback that will be invoked when an authentication token needs to be saved by the plugin. Store this token in a location that will persist between application restarts.
A callback that will be invoked when an authentication token needs to be saved by the plugin. Store this token in a location that will persist between application restarts.
The username of the plugin developer, which will be displayed in VTube Studio.
Optional
pluginA base64-encoded PNG or JPG that is exactly 128x128 pixels which will be displayed in VTube Studio.
The name of the plugin, which will be displayed in VTube Studio.
Optional
portThe port to use when connecting to VTube Studio. Ignored if url
is provided. Defaults to 8001
.
Optional
urlThe URL to connect to VTube Studio with. Defaults to ws://localhost:8001
.
Optional
webA user-provided factory function that creates WebSocket instances, for example (url) => new WebSocket(url)
. Only set this if the library cannot automatically detect a WebSocket implementation in your environment.
A user-provided factory function that creates WebSocket instances, for example (url) => new WebSocket(url)
. Only set this if the library cannot automatically detect a WebSocket implementation in your environment.
Generated using TypeDoc
A callback that will be invoked when an authentication token is needed to authenticate with VTube Studio. Return null from this function if no token is available yet.