struct PlaceOS::API::Models::Websocket::Response

Defined in:

placeos/api/models/websocket/response.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Class Method Detail

def self.from_json(input) #

Parses a websocket response into a concrete response type.

FIXME currently this is parsing twice - this is a quick hack to get things going. When time allows this should be refactored to work as a single pass, or provide a more efficient method for identifying the message type.


[View source]

Instance Method Detail

def initialize #

[View source]