WIP swarm listen

This commit is contained in:
Robert Zajac
2018-11-11 20:29:17 -05:00
parent bc59a051ab
commit 684cb90908
6 changed files with 57 additions and 30 deletions

View File

@ -55,6 +55,7 @@ class BasicHost(IHost):
:param proto_id: protocol id that stream runs on
:return: true if successful
"""
# TODO: host should return a mux stream not a raw stream
stream = self.network.new_stream(peer_id)
stream.set_protocol(protocol_id)
return stream