ittyon.client
A client that communicates with a server to mirror its state.
connect!
(connect! socket)
Connect to a server via a socket, a map that contains :in
and :out
keys that hold the input and output channels. Returns a channel that promises to deliver a new client once the connection has been established. Used in conjuction with server/accept!.
tick!
(tick! client)
Move the clock forward on the client. This does not send anything to the server.
transact!
(transact! client transitions)
Atomically update the client with an ordered collection of transitions, then relay them to the server. Times may be omitted from the transitions, in which case the current time will be used. Transitions tagged as :local
will not be sent to the server. Reaction transitions tagged as :impure
will not be applied directly by clients, but will be relayed from the server in order to get a canonical value. See also: core/transact.