Hello,

I'm writing a json-rpc 2.0/netstrings/tcp server in ape JSJS, and I would like to write a function with which the client can subscribe to a channel, and then every time something is posted into that channel, a notification is sent over the json-rpc connection.

Now, how do I join a channel in JSJS, so that I get a callback when something is posted into that channel?

I have found the ircserver.js, but there it looks like APE JSJS in IRCApeclient.sendCmd creates a new connection to itself to port 6969 and posts messages through that connection. Which, I think, is pretty weird, and can really not be the solution; in the jsjs we are already in the server code space. Or is this the only method to interact with a channel from inside APE?

Thanks!
Stefan

--
You received this message because you are subscribed to the Google
Groups "APE Project" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/ape-project?hl=en
---
APE Project (Ajax Push Engine)
Official website : http://www.ape-project.org/
Git Hub : http://github.com/APE-Project/

Reply via email to