Peerchat
Distributed, P2P, realtime chat application based on Kademlia DHT
Install / Use
/learn @worldveil/PeerchatREADME
peerchat
Distributed, P2P, realtime chat application written in golang for MIT's 6.824 distributed systems class.
Testing
Run the tests with:
$ cd src/dht
$ go get github.com/pmylund/sortutil
$ go test 2> /dev/null
You should see this:
(ml)31-35-161:dht will$ go test 2> /dev/null
Running TestSerialization
passed
Running TestBasic
passed
Running TestManyRegistrations
Passed!
Running TestManyMoreRegistrations
Passed!
Running TestSends
Passed!
Running TestSomeLogoffs
Passed!
Running TestPersistance
Passed!
Running TestNewIP
Passed!
Running TestOfflineChat
Passed!
Running TestDualOfflineChat
Passed!
Running TestDualOfflineChat
Passed!
Running TestRealLife
Passed!
so long as K and Alpha are set appropriately as we have them defaulted to. You may see that on less powerful computers that TestRealLife will fail.
Chatting
Start a chat node with:
$ go build
$ ./peerchat
Or alternatively:
$ go run chat.go
Related Skills
node-connect
336.5kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
82.9kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
336.5kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
82.9kCommit, push, and open a PR
