dcsimg
www.webdeveloper.com
Results 1 to 9 of 9

Thread: messaging

  1. #1
    Join Date
    Mar 2017
    Posts
    42

    messaging

    i have come to learn that instant messangers utilise something called web socets to work, but my question is actually about non instant messangers, like the messaging system on sites like this one and other web forums.

    my thinking is that the user types out his message in a text input field then a script handles the message, sending it to the right recipient, creating a new table on the receiving customers database. but that doesn't explain the notifications part like on facebook when you receive a new message a notification instantly comes up, how far off am I here?

  2. #2
    Join Date
    Mar 2017
    Posts
    42
    one thing I thought about was using a recursive ajax function to check at regular intervals for new entries into a db then alert the user when there is but that seems a bit too resource heavy

  3. #3
    Join Date
    May 2016
    Location
    Southern California
    Posts
    81
    You're on the right track with websockets, but i wouldn't do ajax intervals.
    Look into Real Time Messaging, which also uses websockets. Awhile back, I messed around a bit with the Realtime Framework. Now a days, there's lots of options online.

    I like using the javascript library, PNotify, for alerts/notifications (also styles desktop notifications): PNotify.
    It doesn't alert in real time thou, that you would need to be implement.

  4. #4
    Join Date
    Mar 2017
    Posts
    42
    so something like a facebook status feed, web sockets too?

  5. #5
    Join Date
    Mar 2017
    Posts
    42
    bump

  6. #6
    Join Date
    Mar 2017
    Posts
    42
    so is the fb status fed deployed with web sockets too?

  7. #7
    Join Date
    May 2016
    Location
    Southern California
    Posts
    81
    I'm not sure what fb uses for their status feed, since they handle billions of messages they probably have a custom solution. I think they use push.

  8. #8
    Join Date
    Mar 2017
    Posts
    42
    I tought push notifications were only used with mobile devices?

  9. #9
    Join Date
    Oct 2013
    Location
    Sheboygan, Wisconsin
    Posts
    1,405
    Most folks are mobile.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles