This PR introduces significant enhancements to the Skunk project, focusing on peer-to-peer network messaging and chat functionality:
Implement message handlers for various network operations (sending messages, syncing, joining/leaving chats, inviting peers, sending files, setting usernames)
Refactor Peer struct to manage network connections, message handlers, and security context
Introduce MessageSender to handle sending messages over the network
Create SecurityContext to validate messages based on chat membership and invitations
Update network and storage port interfaces to support new functionality
Implement ChatApp service to handle chat-related logic and frontend interactions
Add SQLite storage adapter for persisting messages, chats, invitations, and other data
Write unit tests to verify functionality of message handlers, chat logic, and storage operations
Key changes in cmd/skunk/application/domain/p2p_network/p_service/, cmd/skunk/application/port/, cmd/skunk/adapter/out/storage/, and test/ directories.
This PR lays the foundation for a functional P2P chat application. Future work will focus on UI integration, edge cases, and performance optimization.
This PR introduces significant enhancements to the Skunk project, focusing on peer-to-peer network messaging and chat functionality:
Key changes in
cmd/skunk/application/domain/p2p_network/p_service/
,cmd/skunk/application/port/
,cmd/skunk/adapter/out/storage/
, andtest/
directories.This PR lays the foundation for a functional P2P chat application. Future work will focus on UI integration, edge cases, and performance optimization.
Please review and provide feedback.
Related Tickets: #27 #25 #24 Closes: #19