Inside the App: How Secure Rooms and Device Discovery Work
Have you ever wondered how our application creates a private link between you and another person? It all comes down to two key features working together: Secure Rooms and Device Discovery. This guide breaks down how these technologies create a seamless and safe file-sharing experience.
Understanding Sharemy Rooms 🔒
Think of a room as your own private, temporary space for sharing files. It’s designed from the ground up to be secure and user-controlled.
- Creating a Room: To begin a transfer, a sender must first create a room. When the user clicks the "create room" button, they are sent directly into their room. This room is assigned a unique 6-digit ID that the sender forwards to the receiver.
- Host-Controlled Entry: Security is paramount. When someone tries to join your room, a dialog box appears on the host's screen, giving them the option to allow or deny the request.
- Room Limits: To keep transfers manageable, a room is limited to a total of 5 users. If a sixth person tries to join, they will be shown a message that the room is full. Additionally, devices with the same username are not allowed in the same room.
- Automatic Destruction: The moment the room creator exits, the room is automatically destroyed, ensuring the connection is securely terminated.
How Devices Appear on Your List 🌐
Once you and others are in a room, you’ll see a list of people you can send files to. This isn't magic—it’s based on your network.
- Same-Network Discovery: The application is designed to display a list of available devices that are in the same network. This is the primary way devices discover each other within the app.
- Clear Identification: To avoid confusion, the list displays the specific username of each person in the room.
- A Dynamic & Live List: The list of available devices is always current. If a user exits the room or their connection is lost, they are automatically removed from the list of available devices. This also applies if a person changes their network settings, which would cause them to automatically leave the room.
By combining controlled, private rooms with smart, network-based device discovery, we've made sure that sharing your files is both incredibly simple and fundamentally secure.
