lib/server.js problem
When (in examples/pubsub/server.js)
51 app.publish(topicUri, event);
is being called, it seems the following codes could not be initialised,
(lib/server.js)
function Server(options) {
this.options = options || {};
this.topics = {};
this.clients = {};
}
because, at line 108 (lib/server.js)
if (this.topics[topicUri])
where this is still empty:

Thus, the if condition is always false.
Is there any instruction how to use server.js in lib/server.js?
Do you have any subscribers connected to the server?
Server.topics should be set by the "subscribe" handler (handlers.js:70) if (and only if) a client subscribes the topic. When you publish a message through the HTTP interface ("/hub") and no client is subscribed (via a WAMP client), the message is discarded.
I just tried to use the example given by Autobahn.js, http://autobahn.ws/js/getstarted and running your server
node server.js
Then I run the client side example on a web browser It says, the server does not speak WAMP
Here is the screenshot,

The client, connect to the server at port 9000
var wsuri = "ws://localhost:9000";
while your server
15 var ws = wsio.listen(9000);
...
61 api.listen(9090);
Is there anything I should do to trigger the WAMP on your server?
i'm having this same issue
This may(!) be a problem of ws not supporting the protocol header of WebSocket. I have to test this.
I tried the example (although with the ws module instead of websocket.io). I'll try with websocket.io soon, however I prefer ws.
https://gist.github.com/nicokaiser/5859603
it works. thanks