Send messages on web site(messenger online)

Asked

Viewed 109 times

-1

Hello, I want to create an internet messaging site(SMS messenger), I have some questions:

  • Which languages should I use (notably I will use HTML, CSS, JS)

  • I’ll need to use a database?

  • How to instantly exchange messages, no need to reload the page.

I hope I was clear, and I await the return...

  • 1

    You already have SMS sending plan via web?

  • No, (Whoo that be)?

  • But I don’t want to text on the site (This is just the name). I really want it to work like an online messenger, where registered users exchange messages with each other (as in messenger)

  • I thought it was SMS. Basically you will have to use Ajax, PHP (or other backend) and a database to save messages (e.g. Mysql)..

  • Thanks for the heads-up! but with only this, the messages will be sent/received instantly, and there is no need to reload (Reload) the page?

  • That’s basically it. JS can check from time to time if there is a new message and show to the recipient via Ajax.

  • So that means I should use the "setInterval(checkarDados(),1000)" where the chekarDados() function will import messages from the database from time to time?

  • That’s right. You have to see if the server supports a request every second, especially if you have dozens of users using the system at the same time. Seria setInterval(checkarDados,1000) (without the function parentheses).

  • Thank you, you are helping me a lot! but to make the import I must use the Xmlhttprequest API?

  • Yes, Ajax uses Xmlhttprequest

  • Ball show! thank you very much

Show 6 more comments

2 answers

0


Will have to use database and also php had a chat project that he did not update the page anymore in the case

Php and MYSQL will be used

  • Could you describe how this Chat basically worked?

  • He needs an access to the moderator that was the chat I had To control the chat customers was an open chat more is to just make a hub each customer who click the chat service it will send to a waiting room until the moderator is available and has the option had the application Uber that you disable not to be located or even on the website

0

  • Thanks for the recommendation, but I prefer to develop in practice, from scratch.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.