Monday, November 08, 2010 at 12:04 AM.
system.verbs.builtins.mainResponder.discuss.sendMessageToClient
on sendMessageToClient (msgnum, client, port) {
if client == "127.0.0.1" {
client = "localhost"};
local (adrtable = mainResponder.discuss.getMessageTable (msgnum));
local (adrmemberinfo = html.getpagetableaddress ()^.adrmemberinfo);
local (cookie = mainResponder.discuss.getchecksum (msgnum, adrmemberinfo));
local (params = {base64.encode (mainResponder.discuss.tableToXml (adrtable, cookie), infinity)});
return (betty.rpc.client (client, port, "editorial.receiveMessage", @params))}
<<bundle //test code
<<sendMessageToClient (800, "pebbles.userland.com")
This listing is for code that runs in the OPML Editor environment. I created these listings because I wanted the search engines to index it, so that when I want to look up something in my codebase I don't have to use the much slower search functionality in my object database. Dave Winer.