754557c
Branches > facts > 754557c > files / src / net / bowmap
Add client spec
Commit: 754557cd0cd58203f8736d65dc25eb1bcf4fc0e9
Parent: 77bc4d7
1 changed file:
src/net/bowmap/network/client.clj view file
@@ -1,5 +1,6 @@ (ns net.bowmap.network.client (:require+ [clojure.spec.alpha :as s] [net.bowmap.network.packets.clientbound :refer [encode-packet!]] [net.bowmap.network.packets.serverbound :refer [decode-packet!]] [net.bowmap.network.state :as state]@@ -9,6 +10,8 @@ (:import [java.net Socket])) +(s/def ::client (s/keys :opt [::state/connection-state ::socket]))+ (defn client [socket] (ref {::state/connection-state ::state/handshaking ::socket socket}))