Will Server-Sent Event work?

I am trying to create a page that will display a message for me inside a DIV each time an event occurs on my site.

For example…if a student signs in…or if the student updates payment method…I want this message box to display the event in real time. These events happen on different php pages.

Will server-sent events work for this. I am new to learning how this works and still figuring it out.

I’m not very familiar with PHP, but in Node (and Rails) land, you can use websockets, so that when data changes on the server, you can let clients know without asking.

Here’s an article that explains the general concepts.

1 Like

This website does the type of thing you are asking about.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.