SockJS - '/info' causing Http 404 while connecting server

Viewed 10139

I've mainly followed below posts for implementing push notifications using SockJS,

Push Notifications for Java Webapp, SockJS Client, SockJS Java Server.

My sockJS client is:

var sock = new SockJS("http://localhost:8080/pusher");

sock.onmessage = function(event) {
    console.log("message: " + event.data);
    alert('received message echoed from server: ' + event.data);
};

*Server is listening same port 8080. But while running I got error 404:

GET http://localhost:8080/pusher/info 404 (Not Found)

This post on StackOverflow doesn't solve my problem. Please check what I'm missing. Do I need to register client or publish server to enable the push notifications. Thanks in advance!

1 Answers
Related