Hello. In the application I want to make a chat administration. For this you have to use either Socket or Long polling. In the application, the traffic saving factor plays an important role. So what will be less traffic to eat? Socket or Long polling?

  • Both will eat the battery. Use better Google Cloud Messaging. - Sergey Gornostaev
  • Both are often used, judging by the questions well suited Firebase, RealTImeDatabase + Auth - Shwarz Andrei
  • @Shwarz Andrei I read about both of them and I realized that this is a cool thing but did not understand this service is free? - Fariz Mamedow
  • There are restrictions for free use. You can store 20M messages and transmit approximately 200M messages per month. I think the chat is quite enough. You go to the site where everything is there - Shwarz Andrei
  • one
    @ShwarzAndrei Thank you for doing so - Fariz Mamedow

0