]> gitweb.factorcode.org Git - factor.git/commitdiff
Update remote channels help
authorChris Double <chris.double@double.co.nz>
Fri, 30 Oct 2009 01:25:10 +0000 (14:25 +1300)
committerChris Double <chris.double@double.co.nz>
Fri, 30 Oct 2009 01:25:10 +0000 (14:25 +1300)
basis/channels/remote/remote-docs.factor

index 309f764d2da6f1e6a3deb4baef1901fc0932b2ac..c612b4256ac549039451351a7995d7d836dcaa9f 100644 (file)
@@ -53,11 +53,11 @@ $nl
 " to be accessed remotely. " { $link publish } " returns an id which a remote node "
 "needs to know to access the channel."
 $nl
-{ $snippet "channel [ from . ] spawn drop dup publish" }
+{ $snippet "<channel> dup [ from . flush ] curry \"test\" spawn drop publish" }
 $nl
-"Given the id from the snippet above, a remote node can put items in the channel."
+"Given the id from the snippet above, a remote node can put items in the channel (where 123456 is the id):"
 $nl
-{ $snippet "\"myhost.com\" 9001 <node> \"ID123456\" <remote-channel>\n\"hello\" over to" } 
+{ $snippet "\"myhost.com\" 9001 <node> 123456 <remote-channel>\n\"hello\" over to" } 
 ;
 
 ABOUT: { "remote-channels" "remote-channels" }