e939b69

Branches > main > e939b69 > files

Switch connection state to configuration after login acknowledged packet

Grahp, 2026-02-28

Commit: e939b69c347704042164b67d96b49e8631de447c
Parent: 1e576c5

2 changed files:

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

@@ -51,7 +51,8 @@      ::status-request []      ::ping-request [:timestamp :long]      ::login-start [:username :string-                    :uuid :uuid]}))+                    :uuid :uuid]+     ::login-acknowledged []}))  (defn decode-packet!   "Decodes and returns one packet from ByteBuf 'buf', which should contain at least one readable packet.

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

@@ -29,8 +29,10 @@               :timestamp (:timestamp pk)}})  (defmethod handle-packet ::sp/login-start [pk client]-  (prn pk)   {:response {::pk/id ::cp/login-success               :uuid (:uuid pk)               :username (:username pk)               :properties []}})++(defmethod handle-packet ::sp/login-acknowledged [pk client]+  {::state/state ::state/configuration})