play-co / hookbox

HookBox is a Comet server and message queue that tightly integrates with your existing web application via web hooks and a REST interface.
http://hookbox.org
MIT License
284 stars 23 forks source link

Documentation Problem - Publish via JS API #47

Closed Xorlev closed 14 years ago

Xorlev commented 14 years ago

In the JS API documentation, it is stated that one must call the publish method from the subscription object.

subscription.publish(42);
subscription.publish({foo: "bar"});
subscription.publish(null);
subscription.publish([1,2,3, {a: [4,5,6] });

However, subscriptions do not have a "publish" method, rather that is found in the connection handle.

conn.publish("mychannel", message);
mcarter commented 14 years ago

fixed in trunk.