e26c58d

Branches > main > e26c58d > files / src / net

Update core.clj

Grahp, 2026-06-02

Commit: e26c58de2a1a662c41df7f17ff3a93699437cebc
Parent: 7014976

1 changed file:

src/net/bowmap/core.clj modified (view file)

@@ -1,12 +1,11 @@ (ns net.bowmap.core   (:require-   [clojure.core.async :refer [<!! >!! alt!! chan io-thread put! timeout]]-   [net.bowmap.network.message :as msg]+   [clojure.core.async :refer [>!! alt!! chan]]    [net.bowmap.network.client :as c]-   [net.bowmap.network.state :as state]-   [net.bowmap.packet-handling :as handle]    [net.bowmap.network.message.client :as client]    [net.bowmap.network.message.server :as server]+   [net.bowmap.network.state :as state]+   [net.bowmap.packet-handling :as handle]    [net.bowmap.server :as server-process]))  ;; TODO server should just provide messages in/out@@ -30,10 +29,6 @@                     ; How does keepalive begin though?                     (assert (>!! packets-out (client/message->packet msg (::state/connection-state client))))                     client))-    ; These could be agents around clients with vectors as well instead of immutable maps holding channels-    ; Put this onto messages-in after translating?-    ; Check messages-out and send to uhh yeah-    ;; TODO do you need to send messages out before reading them?     packets-in ([pk]                 (when pk                   (read-and-handle-packet pk client)))))