nionata / grapevine

Anonymous proximity-based gossip messaging mobile application
1 stars 0 forks source link

v1 Data Types #47

Closed nionata closed 2 years ago

nionata commented 2 years ago

New design comes new data types

nionata commented 2 years ago

Advertisement

{
  userId: string <user id of the device that received the advertisement>
  at: string <unix timestamp>
  advertisement: {
    userId: string <user id from AD local name>
    mtu: number <mtu value from advertisement>
    rssi: number <rssi value from advertisement>
  }
}

Message

{
  userId: string
}