Trying to subscribe to a channel, I get the following error
websocket.ERROR: Connection error occurred Topic acme.topic does'nt exist in [ ] in C:\Users\utente\Documents...\vendor\gos\web-socket-bundle\Server\App\Registry\TopicRegistry.php line 43
I'm following the basic implementation and I cna't really find out what's causing this problem.
var websocket = WS.connect("ws://127.0.0.1:8080");
console.log(websocket);
websocket.on("socket/connect", function(session){
//the callback function in "subscribe" is called everytime an event is published in that channel.
session.subscribe("acme/channel", function(uri, payload){
console.log("Received message", payload.msg);
});
session.publish("acme/channel", "This is a message!");
})
websocket.on("socket/disconnect", function(error){
console.log("Disconnected for " + error.reason + " with code " + error.code);
})
Is there a reason based on this code for I would get an empty set in the TopicRegistry?
Trying to subscribe to a channel, I get the following error
I'm following the basic implementation and I cna't really find out what's causing this problem.
my services.yml:
my routing.yml
my config.yml
and the client is:
Is there a reason based on this code for I would get an empty set in the TopicRegistry?