libp2p / go-libp2p-pubsub

The PubSub implementation for go-libp2p
https://github.com/libp2p/specs/tree/master/pubsub
Other
327 stars 186 forks source link

Add example chat app #334

Closed yusefnapora closed 4 years ago

yusefnapora commented 4 years ago

This adds a chat room example, to show the basic PubSub API.

I started writing a more complicated example to specifically highlight the features added in gossipsub v1.1, but since we don't have this introductory example yet, I kept getting drawn off track explaining the basics.

I'm still planning to finish the gossipsub v1.1 example, but I wanted to get this in first so I can assume people know the basics and refer them here if not.

yusefnapora commented 4 years ago

It's just now occurring to me that this really belongs in the go-libp2p-examples repo... I'll move it in the morning :)

vyzo commented 4 years ago

Actually yeah, let's move to go-libp2p-examples.

vyzo commented 4 years ago

Closing to move to go-libp2p-examples; I feel sad about it because this is nice code, but it belongs there as you say.