struct
ACP::Protocol::ExtNotification
- ACP::Protocol::ExtNotification
- Struct
- Value
- Object
Overview
Allows for sending an arbitrary one-way notification that is not
part of the ACP spec. The #method field is the custom method name
WITHOUT the _ prefix.
Included Modules
- JSON::Serializable
Defined in:
acp/protocol/types.crConstructors
- .new(pull : JSON::PullParser)
- .new(method : String, params : JSON::Any = JSON::Any.new(nil), meta : Hash(String, JSON::Any) | Nil = nil)
Instance Method Summary
-
#meta : Hash(String, JSON::Any) | Nil
Extension metadata.
-
#meta=(meta : Hash(String, JSON::Any) | Nil)
Extension metadata.
-
#method : String
The custom method name (without the
_prefix). -
#method=(method : String)
The custom method name (without the
_prefix). -
#params : JSON::Any
The notification parameters as raw JSON.
-
#params=(params : JSON::Any)
The notification parameters as raw JSON.
Constructor Detail
def self.new(method : String, params : JSON::Any = JSON::Any.new(nil), meta : Hash(String, JSON::Any) | Nil = nil)
#