typeintandem / tandem

Typing in Tandem. Decentralized, cross-editor, collaborative text-editing!
Apache License 2.0
696 stars 20 forks source link

Use the shared Peer model in the rendezvous server (5/5) #98

Closed geoffxy closed 6 years ago

geoffxy commented 6 years ago

I added the get_peer() function but also kept the connection's get_id() function. It's implemented by returning the peer's ID, but I think it makes sense to keep an explicit function used for the connection's ID. Otherwise I feel like it would be weird to be grabbing the connection's ID from the peer (e.g. when we add a Connection to a Session).