Call declarations
Check for the existence of events, ghost requires at least Has_Event
event support and can be made more efficient by providing Get_Supported_Events
events
Optional
security_level: security_level_tlet result = await ghost_events_queryer("On_connect");
based on ghost_events_queryer_t.check_event
The function's signature
Rest
...args: [string, security_level_t]Constructing an Event Querier
Constructing an Event Querier
Initializing from a function instance
Rest
...args: [string, security_level_t]Queries the default security level, which is "local" in nodejs and "external" in browsers.
Readonly
lengthThe number of arguments expected by the function.
MDN Reference
Readonly
nameFunction's name.
MDN Reference
Check if the event can be checked
Check if you can use Get_Supported_Events
to quickly get a list of supported events
Calls a function and replaces the function's this value with the specified object and the function's arguments with the specified array.
MDN Reference
The object that will be used as the this object.
Rest
...args: [string, security_level_t]Optional
argArray: [string, security_level_t]A set of arguments to be passed to the function.
For a given function, creates a bound function with the same body as the original function.
The this object of the bound function is associated with the specified object and has the specified initial argument.
MDN Reference
An object that the this keyword can refer to in the new function.
Rest
...args: [string, security_level_t]Rest
...argArray: anyA list of arguments to be passed to the new function.
Rest
...args: [string, security_level_t]Calls a method on an object that replaces the current object with another object.
MDN Reference
The object that will be used as the current object.
Rest
...args: [string, security_level_t]Rest
...argArray: [string, security_level_t]The list of arguments to be passed to the method.
To check for the existence of events, ghost requires at least Has_Event
event support and can be made more efficient by providing Get_Supported_Events
events
Optional
security_level: security_level_tlet result = await ghost_events_queryer.check_event("On_connect");
base on jsstp_t.has_event and jsstp_t.get_supported_events
this
this
ghost event finder
Example
Alias
jsstp.ghost_events_queryer_t
See
jsstp_t.new_event_queryer