There are tons of ways to deal with such things. You could do an ajax poll, as you mentioned, you can use the comet method , where you practically leave the connection open until the server is turned on, or you can even use web sockets with all your might (maybe this is a bit overkill for this task).
Without sockets, there is currently no way to send a server message to a client without a client request.
, , , //. . , , ( delayed_job). , ajax , , .