258 Commits

Author SHA1 Message Date
Prithvi Shahi
0ff65992a1 Merge pull request #17 from libp2p/add-kad
feat: add Kademlia to rust peer
2023-04-03 18:13:30 -07:00
Prithvi Shahi
ac9989ead5 feat: add Kademlia to rust peer 2023-04-03 18:09:32 -07:00
Chad Nehemiah
05632036b9 feat: add relay capabilities to rust server (#15) 2023-04-03 19:56:26 -05:00
Pan Chasinga
66e8fe9847 Add blocky identicons to chat message UI
- Refactor the chat message into a separate component to allow integration
of blockies in the `useEffect` hook.
- Get peer ID string of every sender and use it as a seed to each blocky.
- FIXME: TypeScript yells that 'from' doesn't exist in type 'Message', which
apparently is a variant type of either 'SignedMessage' or 'UnsignedMessage', of
which the first contains 'from' attribute. Currently the 'Message' is being casted
as 'any' as a quick fix for this.
2023-04-03 11:07:13 -07:00
Daniel N
fe12566e13 log peer id in multiaddrs 2023-03-30 20:17:33 +02:00
Daniel Norman
776ba271fd Merge pull request #8 from TheDiscordian/main
Improvements to the Go daemon
2023-03-30 20:16:49 +02:00
Daniel N
7d5658b949 remove workflow to deploy to gcp 2023-03-30 19:30:24 +02:00
Daniel N
905e2fb566 set artifact location correctly 2023-03-30 15:40:26 +02:00
Daniel N
016b08a444 use alpine for smaller image 2023-03-30 14:57:42 +02:00
Chad Nehemiah
eeaa08c0aa dep: removed forked dep due to fix in rust-libp2p (#6) (#9) 2023-03-29 18:38:11 -05:00
Discordian
3e18e101f7 Log system messages to another view, added optional log-to-file flag 2023-03-29 14:56:35 -04:00
Discordian
739ce8012d priv key loading support (consistent peerID) 2023-03-29 14:31:29 -04:00
Discordian
e4f814e5e4 Removed JSON stuff, slowed down discover to be less spammy 2023-03-29 14:21:23 -04:00
Daniel N
08bd0cbf6f ci: update workflow triggers 2023-03-29 20:14:16 +02:00
Daniel N
185e415cb6 ci: try with json credentials 2023-03-29 20:11:59 +02:00
Daniel N
47a83aa004 ci: add workflow to build and deploy to cloud run 2023-03-29 20:04:21 +02:00
Daniel N
8fec75051c push the image to the libp2p org namespace 2023-03-29 19:03:25 +02:00
Daniel N
d89613188a ci: revert back changes to workflow
turns out that the problems are because of a GitHub incident
https://www.githubstatus.com/incidents/z3c6q056q332
2023-03-29 18:35:35 +02:00
Daniel N
ad283970c6 ci: change default working dir 2023-03-29 18:32:51 +02:00
Daniel N
0cd5848800 pin metadata action 2023-03-29 18:30:12 +02:00
Daniel N
a2df816a3a move workflow dispatch 2023-03-29 18:28:11 +02:00
Daniel N
6adfea082b set workflow context to go-server dir 2023-03-29 18:24:19 +02:00
Prithvi Shahi
b23addf23a Merge pull request #3 from libp2p/rust-server
Rust server
2023-03-29 08:20:34 -07:00
Prithvi Shahi
a40fa9364b Merge branch 'main' into rust-server 2023-03-29 08:20:18 -07:00
Prithvi Shahi
357f08eb1f Merge pull request #6 from mxinden/rust-server
Fix missing SUBSCRIBE and refactor
2023-03-29 08:06:31 -07:00
Daniel N
394169cb08 add docker build workflow for go 2023-03-29 15:56:29 +02:00
Daniel N
19a1315525 Add docker file for the go chat server 2023-03-29 15:49:28 +02:00
Daniel N
6dd2aef31b remove default messages from chat 2023-03-29 15:47:02 +02:00
Max Inden
4756648e65 Fix missing SUBSCRIBE and refactor
Depend on latest commits on https://github.com/libp2p/rust-libp2p/pull/3625 more
specifically
b572895246
resolving the missing SUBSCRIBE message previously not send by a rust-libp2p server.

Additional refactorings:

- Use clap to parse command line arguments. Among other things gives us nice
help text and better error messages.
- Depend on `libp2p-webrtc` directly as we will remove the re-export from
`libp2p`.
- Use `futures-timer` to send `Hello World` on a 2 second interval instead of on
each `SwarmEvent`.
- Redo logging on various levels (warn, info, debug).
2023-03-29 15:45:46 +02:00
Daniel Norman
74f6d331a4 Create README.md 2023-03-29 15:36:35 +02:00
Daniel Norman
0838803381 Merge pull request #4 from TheDiscordian/main
Go Server
2023-03-29 15:09:31 +02:00
Daniel N
5430f95fd7 fix: messages are not json 2023-03-28 18:59:11 +02:00
Discordian
cfe7ec13d9 Much better error logging 2023-03-28 12:10:29 -04:00
Discordian
cd755d4d13 Connect to correct room, improve logging 2023-03-28 12:02:36 -04:00
Prithvi Shahi
1faaaa5f5d revert custom js-libp2p-gossipsub branch 2023-03-27 11:39:15 -07:00
Prithvi Shahi
a8c18c84e5 reenable webtransport 2023-03-27 08:15:33 -07:00
chad
f40128c9b9 forcefully add mesh peers to subscribers in js-gossipsub 2023-03-24 17:52:21 -05:00
Discordian
ebf972dc6e DHT / Rendezvous / Bootstrap
Also added some commented out lines to try connecting to other nodes. The fmt.Printfs will likely break the chat interface, but this isn't super important rn
2023-03-24 16:37:43 -04:00
Prithvi Shahi
a7a0384525 add message id function 2023-03-24 10:51:02 -07:00
Prithvi Shahi
0780b582a4 fix toml 2023-03-24 09:40:16 -07:00
Prithvi Shahi
074b3769bc publish at even intervals 2023-03-24 09:05:42 -07:00
Discordian
01b6d30d2b display peerID 2023-03-23 15:58:26 -04:00
Discordian
47592c549c :: 2023-03-23 14:54:24 -04:00
Discordian
bad7d763b6 ipv6 2023-03-23 14:45:20 -04:00
Discordian
fcf349efea Example is probably good enough now 2023-03-23 14:34:50 -04:00
Discordian
de33e89214 No more errors, but also no WebTransport in listen addrs... 2023-03-23 13:57:10 -04:00
Discordian
0ba618b810 Added go-server (webtransport not yet working) 2023-03-23 13:41:22 -04:00
Daniel N
6f251c9372 remove fly from pipeline 2023-03-23 14:57:47 +01:00
chad
153192968c integrated explicit peer adding for gossipsub + added recurring messages from rust-server 2023-03-22 15:29:54 -05:00
Daniel N
bf1be775a8 enable logging 2023-03-22 20:21:00 +01:00