feat: add signal cmd

This commit is contained in:
braginini
2021-04-15 15:10:39 +02:00
parent 303f955e32
commit b72fceab40
4 changed files with 64 additions and 21 deletions
-8
View File
@@ -67,14 +67,6 @@ func (s *SignalExchangeServer) ConnectStream(stream proto.SignalExchange_Connect
return stream.Context().Err()
}
func copyMessage(msg *proto.Message) *proto.Message {
return &proto.Message{
Type: msg.Type,
Key: msg.Key,
RemoteKey: msg.RemoteKey,
}
}
// Handles initial Peer connection.
// Each connection must provide an ID header.
// At this moment the connecting Peer will be registered in the peer.Registry