Posts

Showing posts from April, 2022

Chat socket App

Image
 It is a small demo using socket communication; I built an interactive chat app; this is a simple app; I'll improve its features sometime later, so let’s start whit this prototype. The socket communication is interactive; it doesn't need to wait to check the status;  When you use a Rest API,  the client makes a request to obtain the response from the server, but when you need to be aware of something such as behavior wether, you have to check this status many times, so how do you avoid this activity? Sockets for rescue! The socket communication is bidirectional; therefore, the client and server know their status;  It needs only one endpoint to send and receive messages.  Stomp is a protocol for messaging; it is widely supported for uses over WebSockets; some web apps like   RabbitMq or other brokers implement these features; Stomp defines these operations: Connect Subscribe Unsubscribe Send o Publish Disconnect Frontend The frontend is made in...