8125dd8

Bowmap · bowmap.git · Tickets

Branches > main > 8125dd8 > files

Add connection spec

Grahp, 2026-09-10

Commit: 8125dd8ee170c0ccb97a27e863074e58926897fa
Parent: 45b181c

1 changed file:

src/net/bowmap/server/network/connection.clj modified (view file)

@@ -2,11 +2,14 @@   "A connection to the Minecraft server."   (:require    [clojure.core.async :refer [<!! >!! chan close! io-thread]]+   [clojure.spec.alpha :as s]    [net.bowmap.server.network.streams :as streams])   (:import    [java.io IOException]    [java.net Socket])) +(s/def ::connection (s/keys :opt [::clientbound-frames ::serverbound-frames]))+ (defn connection   "Returns a connection from a given java.net.Socket.    Connection has keys [::clientbound-frames ::serverbound-frames], both