Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7543471
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T08:26:14+00:00 2026-05-30T08:26:14+00:00

Recently, I came across this kind of need. The client(web browser) requests for a

  • 0

Recently, I came across this kind of need. The client(web browser) requests for a task to be done asynchronously at the server side, then the client leaves it behind.

When the server finishes the task, it will notify the client by sending some message.

So, my question is:

Is there a way to send message(plain text, json, etc) from the server side to the client initiatively?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T08:26:15+00:00Added an answer on May 30, 2026 at 8:26 am

    Off the top of my head, two possible solutions come to mind:

    The first, most common (and safest) solution to this will probably be AJAX long-polling, that is, setting up an ajax query on the client to periodically make a request and do something with the response. For example, setting up a resource that returns your “completed” message when the server side processing is complete. It’s not ideal, given your question, but it is certainly feasible and pretty reliable.

    To actually use push technology (which is precisely what you’re asking, but not necessarily what you really need), you should take a look at WebSockets. If you take a look at that link you will see in the body of the article the list of browsers supporting the technology, and depending on your use case, you may or may not wish to investigate further.

    I personally deal with a lot of old browsers so the ajax polling would be my go to guy. Assuming this is a semi long running process, polling every 2-5 seconds should not upset your users too much. This won’t be good for real-time chats or anything, but for “I parsed your 200M excel file” it should be fine.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I recently came across this web page http://www.yoda.arachsys.com/csharp/readbinary.html explaining what precautions to take when
I recently came across this line in a PHP script: $_REQUEST['start_date']=$date; Is it allowed
I recently came across this article , discussing how to leverage mod_cluster to create
I've been developing with PHP for some years now, and recently came across this
Recently I came across this error in my WCF trace: There was an error
Recently I came across this video on Programming Paradigms and the prof. used terms
I recently came across a question about sequence points in C++ at this site,
Recently I was trying some practice programs in python and I came across this
recently, while working on a db2 -> oracle migration project, we came across this
I recently came across this website: http://studiostyles.info , which contains a list of color

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.