Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

130
Views
Creating a web-based direct message chat service?

Looking into creating a web-based chat service similar to popular apps like telegram/groupme. I've already started the base design layout with html/css/javascript, but I am unsure of how the actual chatting would work. I've looked into solutions such as socket.io, but that seems more like a real time "chatroom" solution rather than direct messaging.

I've thought of my own ways of doing it like creating a new php document in a directory with a random link every time a user creates a new chat and appending the new messages to that php page. Then loading that page in whenever a user clicks on an open chat (only letting users in based off their usernames of course). However, I doubt it's that simple. Curious if you guys could enlighten me in the way of web-based direct messaging.

Thanks!

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Web Sockets for client to server and backwards. Web RTC for peer to peer communication. Read about them both in MDN docs.

https://developer.mozilla.org/en-US/docs/Web/API/WebRTC_API

https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API

Start with the examples, they are more fun.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!