Basic Chat using UDP Punching Hole
Download from https://github.com/nopsteam/udpuchat
clj -X:run-serverclj -X:run-client :sender-id :delboni :receiver-id :bertin
# AND
clj -X:run-client :sender-id :bertin :receiver-id :delboni
# OR
clj -X:run-client :sender-id :delboni :receiver-id :bertin :server-port 7070
# AND
clj -X:run-client :sender-id :bertin :receiver-id :delboni :server-port 7070
# OR
clj -X:run-client :sender-id :delboni :receiver-id :bertin :server-port 7070 :server-ip \"127.0.0.1\"
# AND
clj -X:run-client :sender-id :bertin :receiver-id :delboni :server-port 7070 :server-ip \"127.0.0.1\"clj -M:clojure-lsp format
clj -M:clojure-lsp clean-ns
clj -M:clojure-lsp diagnosticsRun the project's tests (they'll fail until you edit them):
$ clojure -T:build test
Run the project's CI pipeline and build an uberjar (this will fail until you edit the tests to pass):
$ clojure -T:build ci
This will produce an updated
pom.xmlfile with synchronized dependencies inside theMETA-INFdirectory insidetarget/classesand the uberjar intarget. You can update the version (and SCM tag) information in generatedpom.xmlby updatingbuild.clj. If you don't want thepom.xmlfile in your project, you can remove it. Thecitask will still generate a minimalpom.xmlas part of theubertask, unless you removeversionfrombuild.clj.
Run that uberjar:
$ java -jar target/udpuchat-0.1.0-SNAPSHOT.jar
If you remove version from build.clj, the uberjar will become target/udpuchat.jar.
This is free and unencumbered software released into the public domain. For more information, please refer to http://unlicense.org