title: How to send direct message via Firebase from user to user?
body: <p>I am really rookie and need an advice. </p>
  
  <p>I have <a href="https://firebase.google.com/docs/" rel="nofollow">read documentation</a>, and as far as i understood if you need send direct message, follow next steps:</p>
  
  <ol>
  <li>Make authentification, eventually you get <code>Firebase TokenId</code> and
  <code>userId</code></li>
  <li>Send them to your server side and store it in DB </li>
  <li>When you are going to send a message you need create <code>json</code> and put
  inside <code>topic</code> <code>text</code> and <code>resipent userId</code> so on...</li>
  <li>Send this <code>json</code> via HTTP to your server side</li>
  <li>When server retrive this <code>json</code>, it should use Firebase API to
  create new message bloc <code>child</code> with random name in firebase</li>
  <li>Eventually server have to find recipent user in DB by userId that we get from message.</li>
  <li>After server will find current recipent user by userId , next we should take <code>firebase tokenId</code> In order to sent notification .</li>
  <li>And send recipent user notification with such data - name of new
  message bloc <code>child</code></li>
  <li>Recipent will connect to this current bloc and retrive data</li>
  </ol>
  
  <p>It is as i understood this consept, fix me please if smth wrong?</p>