Hello - I have to send notification from desktop application(Socket Application) to web UI. How can i do this? First i think, socket.io is best available solution. but it only accept/read json objects. An application which i trying to develop is, i have to receive logs objects on socket, then notification will be shown on web UI that which type of log i have received.
There are different ways to do this, depending on the relationship between the web app and the desktop app. Is the web app on the local machine or a remote machine? Can you write your own code to run on the web application? If you can write code run on the web app then I would create a page / URL which takes a POST request with the data you require. Your desktop app gets its information and uses an HttpURLConnection (or the Apache HttpClient) to make make a POST connection to the web application and send a POST request to the desired URL.