lighthouse-client-0.2.0.0: Project Lighthouse client SDK
Safe HaskellSafe-Inferred
LanguageHaskell2010

Lighthouse.Protocol

Synopsis

Client -> server messages

data ClientRequest Source #

High-level client -> server message structure.

Instances

Instances details
Show ClientRequest Source # 
Instance details

Defined in Lighthouse.Protocol

Eq ClientRequest Source # 
Instance details

Defined in Lighthouse.Protocol

data ClientMessage Source #

Low-level client -> server message structure.

Constructors

ClientMessage 

Instances

Instances details
Show ClientMessage Source # 
Instance details

Defined in Lighthouse.Protocol

Eq ClientMessage Source # 
Instance details

Defined in Lighthouse.Protocol

MPSerializable ClientMessage Source # 
Instance details

Defined in Lighthouse.Protocol

Methods

mpSerialize :: ClientMessage -> Object Source #

Serializable ClientMessage Source # 
Instance details

Defined in Lighthouse.Protocol

encodeRequest :: Int -> Authentication -> ClientRequest -> ClientMessage Source #

Encodes a ClientRequest to a ClientMessage.

Server -> client messages

data ServerEvent Source #

High-level server -> client message structure.

Instances

Instances details
Show ServerEvent Source # 
Instance details

Defined in Lighthouse.Protocol

Eq ServerEvent Source # 
Instance details

Defined in Lighthouse.Protocol

data InputEvent Source #

A key event emitted via the web interface.

Constructors

InputEvent 

Fields

Instances

Instances details
Show InputEvent Source # 
Instance details

Defined in Lighthouse.Protocol

Eq InputEvent Source # 
Instance details

Defined in Lighthouse.Protocol

MPDeserializable InputEvent Source # 
Instance details

Defined in Lighthouse.Protocol

data Input Source #

An input via the web interface.

Constructors

KeyInput 

Fields

ControllerInput 

Fields

Instances

Instances details
Show Input Source # 
Instance details

Defined in Lighthouse.Protocol

Methods

showsPrec :: Int -> Input -> ShowS #

show :: Input -> String #

showList :: [Input] -> ShowS #

Eq Input Source # 
Instance details

Defined in Lighthouse.Protocol

Methods

(==) :: Input -> Input -> Bool #

(/=) :: Input -> Input -> Bool #

data ServerMessage Source #

Low-level server -> client message structure.

Constructors

ServerMessage 

Fields

decodeEvent :: ServerMessage -> Either Text ServerEvent Source #

Decodes a ServerMessage to a ServerEvent.

Orphan instances

MPSerializable Display Source # 
Instance details

Methods

mpSerialize :: Display -> Object Source #