Commit Graph

16 Commits

Author SHA1 Message Date
Derrick Hammer 31ccfb8c0b
refactor: major rewrite of message structure and wiring, reducing complexity 2024-01-28 23:39:40 -05:00
Derrick Hammer 3d41119f74
fix: add a new property on messages and peers to prevent messages from being processed before the handshake is done 2024-01-13 11:22:01 -05:00
Derrick Hammer b70d350447
fix: need to store connectionUris 2024-01-08 12:11:54 -05:00
Derrick Hammer 8a47faecac
feat: implement HandshakeDone HandleMessage 2024-01-08 12:11:34 -05:00
Derrick Hammer b3a6d6ddcc
fix: DecodeMessage needs to be by ref 2024-01-08 08:21:18 -05:00
Derrick Hammer 291a87aefc
fix: we need to use EncodeMsgpackArray 2024-01-07 22:35:41 -05:00
Derrick Hammer 12d8d1371a
fix: we dont need to send the network id 2024-01-07 21:41:17 -05:00
Derrick Hammer 102f147ec4
fix: encode the challenge, mot the original message 2024-01-07 21:38:26 -05:00
Derrick Hammer a6389eb738
feat: add EncodeMsgpack, HandleMessage, and NewHandshakeDoneRequest toHandshakeDone 2024-01-07 09:13:03 -05:00
Derrick Hammer 2e9b07c6bd
refactor: dont use pointers with interfaces 2024-01-07 06:47:01 -05:00
Derrick Hammer 52b7426a7a
refactor: change how we manage peers, create getter/setters on Peer/BasePeer, and refactor WebSocketPeer to use new ws package and add Connect/NewPeer 2024-01-07 06:33:32 -05:00
Derrick Hammer 6597a78e51
refactor: can't inherit from HandshakeOpen without a import cycle 2024-01-07 05:13:09 -05:00
Derrick Hammer 51d76a2d95
refactor: use interfaces 2024-01-07 03:58:22 -05:00
Derrick Hammer 713bcf98c3
refactor: major refactor to split major components into interfaces due to import cycles 2024-01-07 03:13:35 -05:00
Derrick Hammer 2a21ca4d60
refactor: move node and storage to its own package 2024-01-06 13:21:09 -05:00
Derrick Hammer 8c29a284ce
feat: wip networking 2024-01-06 06:34:15 -05:00