move chat.py into examples directory

This commit is contained in:
Christophe de Carvalho Pereira Martins 2018-11-19 17:29:48 +01:00
parent b3e2e6d8ad
commit b80df48d37
No known key found for this signature in database
GPG Key ID: EFEE139F5CCB06C2

View File

@ -1,13 +1,14 @@
#!/bin/env python3
import asyncio
import sys
from os.path import dirname, abspath
sys.path.append(dirname(dirname(dirname(abspath(__file__)))))
import asyncio
import click
from libp2p.libp2p import Libp2p
from network.multiaddr import MultiAddr
# TODO: change once muxed_connection supports extracting protocol id from messages
PROTOCOL_ID = '/echo/1.0.0'