Creating a private chat between a key using a node.js and socket.io

You have to create a room with conversation_id and make users to subscribe to that room, so that you can emit a private message to that room it by, client var socket = io.connect(‘http://ip:port’); socket.emit(‘subscribe’, conversation_id); socket.emit(‘send message’, { room: conversation_id, message: “Some message” }); socket.on(‘conversation private post’, function(data) { //display data.message }); Server socket.on(‘subscribe’, … Read more

Duplicate class android.support.v4.app.INotificationSideChannel found in modules classes?

You can add below 2 lines into your gradle.properties file: android.useAndroidX=true android.enableJetifier=true Note to check, to not repeat any line that already exists (and ensure existing are true). Details: If you want to use androidx-namespaced libraries in a new project, you need to set the compile SDK to Android 9.0 (API level 28) or higher … Read more