class

GemframeSample::Bridge

Inherits Reference < Object

Constructors

new(emit_js : Proc(String, Nil))
Source

Class methods

convert_json_arg(raw : JSON::Any, type : T.class, name : String) : T forall T
Source
to_json_any(value) : JSON::Any
Source

Instance methods

command_signatures
Source
emit_event(topic : String, payload : JSON::Any) : JSON::Any
Source
emit_typed_event(topic : String, payload) : JSON::Any
Source
event_signatures
Source
invoke(args : Array(JSON::Any)) : JSON::Any
Source
job_completed(payload : JobCompletedEvent) : JSON::Any
Source
job_failed(payload : JobErrorEvent) : JSON::Any
Source
job_started(payload : JobStartedEvent) : JSON::Any
Source
job_update(payload : JobProgressEvent) : JSON::Any
Source
register_command(name : String, params : Array(CommandParam) = [] of CommandParam, returns : String = "JSON", &handler : JSON::Any -> JSON::Any) : Nil
Source
register_event(method : String, topic : String, payload_type : String, fields : Array(EventField) = [] of EventField) : Nil
Source
register_type(name : String, fields : Array(TypeField) = [] of TypeField) : Nil
Source
type_signatures
Source

Nested types