Update Lua to event.listEvents to match plugos syscall (#1397)
The documentation, example, and other function names use `event.listEvents`, but `event.list` is being registered with the client.
This commit is contained in:
@@ -6,7 +6,7 @@ export function eventSyscalls(eventHook: EventHookI): SysCallMapping {
|
||||
"event.dispatch": (_ctx, eventName: string, data: any) => {
|
||||
return eventHook.dispatchEvent(eventName, data);
|
||||
},
|
||||
"event.list": () => {
|
||||
"event.listEvents": () => {
|
||||
return eventHook.listEvents();
|
||||
},
|
||||
};
|
||||
|
||||
@@ -43,5 +43,5 @@ export function dispatchEvent(
|
||||
* @returns an array of event names
|
||||
*/
|
||||
export function listEvents(): Promise<string[]> {
|
||||
return syscall("event.list");
|
||||
return syscall("event.listEvents");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user