Skip to main content
Module

x/windows_service/mod.ts>WindowsService#on

Deno library to seamlessly integrate your application as a Windows service without any external tools.
Latest
method WindowsService.prototype.on
import { WindowsService } from "https://deno.land/x/windows_service@1.0.11/mod.ts";

Registers a callback function for a specific event.

Parameters

eventName: string
  • The name of the event to register the callback for (debug, start, stop, continue).
callback: unknown
  • The callback function to be executed when the event is triggered.