I would like to do a messaging in angular 2 but I have a problem.
My problem is : how to do for the list of received messages refreshes automatically when another user sends me a message ? (now I must to refresh the page to have it). Maybe I can use Observable but how ?
See how to use Websockets API. Here you have an example http://www.websocket.org/echo.html
You can also use http streaming instead. An example: https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events