Data inside RecyclerView is getting populated twice using Socket.IO
问题 I am working on chat application which uses Socket.IO for sending and receiving messages.Problem which i am facing is when a user send a message to other user,its message gets populated twice inside recyclerview. My Fragment code :- public class ChatFragment extends Fragment { private static final String TAG = "MainFragment"; private static final int REQUEST_LOGIN = 0; private static final int TYPING_TIMER_LENGTH = 600; private RecyclerView mMessagesView; private EditText mInputMessageView;