ittyon.server

A server that keeps the state of its clients in sync with one another.

accept!

(accept! server socket)

Accept a new connection in the form of a socket, a map that contains :in and :out keys that hold the input and output channels. Used in conjuction with client/connect!.

server

(server init-state)

Create a new server with the supplied initial state.

shutdown!

(shutdown! server)

Shutdown the supplied server and atomically close all open sockets.

tick!

(tick! server)

Move the clock forward on the server. This does not send anything to the clients.