struct Grip::ServerSent::Event::Envelope(T)

Included Modules

Defined in:

grip/server_sent/event/envelope.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(type : String, data : T | Nil = nil, timestamp : Int64 = Time.utc.to_unix_ms) #

[View source]

Instance Method Detail

def data : T | Nil #

[View source]
def timestamp : Int64 #

[View source]
def type : String #

[View source]