what is chattrbox?

  1. it is a chat application built with websockets using the websocket library socket.io.
  2. what is it for?

  3. for friends, family, and/or colleagues to connect in real time and communicate with each other. messages are timestamped. chattrbox also uses the geolocation API and Google Maps API Maps Url . the geolocation API allows users to provide their location IF they want to. they can always choose to DENY access to their location. for privacy reasons, the user is asked permission to report location information when clicking on the Send Location button. chattrbox uses the Google Maps API along with the geolocation API so that a user not only shares his/her latitude and longituda, but an actual Google Map with his/her exact location and directions how to get there. That is possible because of the implementation of Google Maps API dir (directions) mode as opposed to search mode, which is a bit less accurate.
  4. are chats private?

  5. Chats in each chat room that is created by a user when he/she logs in, are private.
  6. if every user can create their own private chat room, how can people chat with each other?

  7. by sharing the name of the chat room with those they want to communicate with in real time. it is important to note, however, that when filling out the input field for the name of the room, all characters must be lowercase and with no spaces. in addition, the spelling must be exactly the same, otherwise a new chat room will be created.
  8. how can i invite others to chat with me?

  9. by sharing the link to the site.
  10. are chats, locations, and timestamps saved anywhere?

  11. the beauty of native websockets (and socket.io) is that they take place in real time BUT data transmitted via the sockets is NOT persistent by default. only if saved to a database. chattrbox does not save anything to a database. on page refresh, everything in an individual user's chat disappears. whatever that user transmitted to the room remains as long as other users keep their browser/socket instance open and don't refresh their page. when they close their window/instance, the information which they transmitted and was transmitted to them, is gone. that does not mean that everything that was transmitted to a room is gone everywhere. everything is gone only when all users who have joined a room have left.
  12. are rooms persistent?

  13. no. but you can re-use a room name if you like and share it with others so that they can join you there.
  14. will the url always remain the same?

  15. NO. i will change it frequently at my discretion so as to prevent abuse of the site for potentially nefarious reasons or for profit. i will share the url only with those that i would like to share the space with.
  16. can i transmit a message by pressing the enter/return key instead of the send button?

  17. NO. you can only transmit a message by clicking the send button.
keyboard_arrow_up