45c0952

Branches > client-handling-rewrite > 45c0952 > files / src / net / bowmap / network / protocol / registry.clj

add start-server! docstring

Grahp, 2026-07-08

Commit: 45c09526cf2cb68c22113b4db95c49dac3b609dd
Parent: a09ae29

1 changed file:

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

@@ -77,7 +77,9 @@  ; TODO make reloadable, if port is already running, just swap it out? ; TODO this is networking, and so should be in net.bowmap.server.network-(defn start-server! [{:keys! [port]}]+(defn start-server!+  "Starts the Minecraft server at the specified port. Returns a promise that will deliver when the server closes."+  [{:keys! [port]}]   (let [{::server/keys! [client-chan shutdown]} (server/start-tcp-server! {:port port})]     ; Loop over the instance?     (io-thread