Skip to main content

sendNotificationEvent

plugin.chat.sendNotificationEvent(notificationMessage: string, type: "editor" | "browser" | "terminal" | "git" | "debug" | "planner" | "preview"): void

Sends a notification event to the server.

Parameters

ParameterTypeRequiredDescription
notificationMessagestringYesThe message to be sent in the notification.
type`"editor""browser""terminal"

Returns

void

Example

import plugin from '@codebolt/plugin-sdk';

const result = await plugin.chat.sendNotificationEvent('notificationMessage', /* "editor" | "browser" | "terminal" | "git" | "debug" | "planner" | "preview" */);
console.log(result);