Matches event names to generate a simple invoker
Matches event names to generate a simple invoker
Matches event names to generate a simple invoker
The header used in fecth.
Default Message Content
Queries the default security level, which is "local" in nodejs and "external" in browsers.
Self Proxy
SSTP protocol version number list
Modify host
Modify sendername
Getting fmo information
fmo information
Getting supported events in an agreed structure requires ghost to support Get_Supported_Events
events
If unsure of ghost support, use ghost_events_queryer_t (obtained via jsstp_t.new_event_queryer) to query
Object containing both local and external arrays
jsstp.get_supported_events().then(result => console.log(result));
//sample code (AYA):
SHIORI_EV.On_Get_Supported_Events: void {
_L=GETFUNCLIST('On')
_base_local_event_funcs=IARRAY
foreach _L;_func{
if SUBSTR(_func,2,1) == '_'
_func=SUBSTR(_func,3,STRLEN(_func))
_base_local_event_funcs,=_func
}
_L=GETFUNCLIST('SHIORI_EV.On')
foreach _L;_func{
if SUBSTR(_func,12,1) == '_'
_func=SUBSTR(_func,13,STRLEN(_func))
_base_local_event_funcs,=_func
}
SHIORI_FW.Make_X_SSTP_PassThru('local',ARRAYDEDUP(_base_local_event_funcs))
_L=GETFUNCLIST('ExternalEvent.On')
_base_external_event_funcs=IARRAY
foreach _L;_func{
if SUBSTR(_func,16,1) == '_'
_func=SUBSTR(_func,17,STRLEN(_func))
_base_external_event_funcs,=_func
}
_L=GETFUNCLIST('SHIORI_EV.ExternalEvent.On')
foreach _L;_func{
if SUBSTR(_func,26,1) == '_'
_func=SUBSTR(_func,27,STRLEN(_func))
_base_external_event_funcs,=_func
}
SHIORI_FW.Make_X_SSTP_PassThru('external',ARRAYDEDUP(_base_external_event_funcs))
}
SHIORI_EV.ExternalEvent.On_Get_Supported_Events{
SHIORI_EV.On_Get_Supported_Events
}
Determine if an event exists
Use ghost_events_queryer_t (obtained via jsstp_t.new_event_queryer) to query if it is likely to be called frequently
event_name
Optional
security_level: security_level_tsecurity_level
whether or not it exists
jsstp.has_event("OnTest").then(result => console.log(result));
//sample code (AYA):
SHIORI_EV.On_Has_Event : void {
_event_name=reference.raw[0]
_SecurityLevel=reference.raw[1]
if !_SecurityLevel
_SecurityLevel=SHIORI_FW.SecurityLevel
if SUBSTR(_event_name,0,2) != 'On'
_event_name='On_'+_event_name
_result=0
if TOLOWER(_SecurityLevel) == 'external'
_event_name='ExternalEvent.'+_event_name
_result=ISFUNC(_event_name)
if !_result
_result=ISFUNC('SHIORI_EV.'+_event_name)
SHIORI_FW.Make_X_SSTP_PassThru('Result',_result)
}
SHIORI_EV.ExternalEvent.On_Has_Event{
SHIORI_EV.On_Has_Event
}
Get a queryer for querying events supported by ghost
Query the queryer for supported events.
Get the invoker of a specific method
The invoker
Get a simple invoker for a specific key
Key name
Key value
Optional
method_caller: method_caller<T, [Object]>Method invoker
The invoker
Proxy to get the executor of a specific command
Proxy for a simple caller to get a specified event
Base sstp message class
fmo message class
ghost event finder
List message object
sstp message class
jsstp object
jsstp object
See
jsstp
Alias
jsstp.type
Example