client.clj
Branches > main > 55ab602 > files / src / net / bowmap / protocol / client.clj
(ns net.bowmap.protocol.client
(:require
[clojure.core.async :refer [chan]]
[clojure.spec.alpha :as s]
[net.bowmap.transport.connection :as connection]
[net.bowmap.protocol.state :as state]))
(s/def ::client (s/keys :opt [::state/connection-state ::connection/connection]))
(defn client [connection]
{::state/connection-state ::state/handshaking
::connection/connection connection
; Not the best place but I can move later
::clientbound-packets (chan 1024)})