So I have on the disconnect event I have the server skim through all the rooms, and if it encounters a room name with a length of 4, it tells everyone in the room that the size of the room decreased by one. I assign custom, 4 digit rooms on each connect event. By some quirk, NodeJS is treating it like a normal array. Server io.sockets.once('connection', function(socket) can only be used for block statements and objects. Remove the event listener when the controller instance is destroyed If there's an ideal - and official - way to join and leave rooms that feels less clunky than this I'd love to learn about it.Ĭlient var roomId = ChatRoomData._id // comes from a factory After looking at a couple of questions I've put together something functional but most of the response linked are from people who admit they've hacked together answers and I've noticed there's a more general - and recent - discussion about the right way to do this on the Socket.io repo (notably here and here)Īs I'm such a novice I don't know if the work below is an acceptable way to do things or it just happens to incidentally function but will cause performance issues or result in too many listeners. I can give you a source for that allegation if needed, but why not use Jitsi that doesn't need a plugin for OTR.I'm trying to learn Socket.io by building a set of dynamically created chatrooms that emit 'connected' and 'disconnected' messages when users enter and leave. Lastly I heard that Pidgin stores your passwords in plaintext on your device. I'm trying to setup a group chat with some members not seeing the need for encryption and thus not wanting extra steps like setting up Pidgin. I don't like that I can't put a password on the CryptoCat chat room beyond using a randomized chat room name.įor the record, OTR group chat can be accomplished using many interoperable cross-platform multi-service chat client. The only way to setup a chat room with OTR seems to be a group chat (requires invitations rather than a meet spot) or CryptoCat. It sounds like OTR is the gold standard for instant messaging, but once again my priority isn't gold. ![]() Mailvelope was the best solution I could find for user-friendly basic-level security. Seeing as I was only looking for a basic level of security, that seemed like overkill. This reminds me of when I tried to find a simple way to implement email encryption. Please let me know if there is a better place to post this question or search for answers. However, the website's security certificate expired today, and they haven't uploaded a new one. Also, positive reviews from LifeHacker and PC Magazine. The cached page seems to describe the cryptography the exact same way as ChatCrypt is laid out with the advantage of HTTPS (TLS/SSL) connection to the main page. It's very likely that I'm not as smart as I claim about this crypto stuff. That being said, I noticed that the main page is not HTTPS. However, I'm fine with the coding abilities of Eastern Europeans. Some of the language on the How It Works page looks like it was written by an Eastern European. But remember, my goal is user-friendly "security." I'm fine with well-done web-based encryption as long as it is easy to sign in. More importantly it's a browser-based encryption. ![]() However, there is no way to password protect a chat room meaning anyone can join who can guess the room number. ![]() However, I'm primarily wanting to setup a text chat room.Ĭrypto Cat seemed like the perfect solution. If I didn't trust their servers, I could setup my own Jitsi Videobridge. Jitsi Meet is an awesome service for audio and video chatting. ![]() This is especially true after learning that Facebook does its own monitoring of our conversations beyond what the government mandates. It doesn't need to be NSA proof, but I'd like it to be a little bit harder for Big Brother and Little Brother to read my group chats. I've been searching for a user-friendly "secure" chat room.
0 Comments
Leave a Reply. |