0

I'm able to send data from Node Server to Angular when I make an HTTP request.

How do I receive data in Angular without making an explicit request to Node server?

The functionality I want to implement in Angular is, I need to show Snackbars on top without any user interaction with the front end controls.

Which concept in Angular and Node should I use to achieve it?

1 Answer 1

2

What you need is WebSockets most likely. Recommend to look at socket.io library very easy implementation for node.js

So the ideea is that you can open a persistent connection client<->server and just can send messages bidirectionally from client to server and server to client.

Sign up to request clarification or add additional context in comments.

2 Comments

Could you suggest a good article which has used socket.io in MEAN stack
medium.com/@parthkamaria/… This one can be a good starter.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.