From: Chris Double Date: Fri, 30 Oct 2009 01:25:10 +0000 (+1300) Subject: Update remote channels help X-Git-Tag: 0.97~5218^2~2^2 X-Git-Url: https://gitweb.factorcode.org/gitweb.cgi?p=factor.git;a=commitdiff_plain;h=afec4842401b0f1e101c0b98aac0cf6da46c88a0 Update remote channels help --- diff --git a/basis/channels/remote/remote-docs.factor b/basis/channels/remote/remote-docs.factor index 309f764d2d..c612b4256a 100644 --- a/basis/channels/remote/remote-docs.factor +++ b/basis/channels/remote/remote-docs.factor @@ -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 " 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 \"ID123456\" \n\"hello\" over to" } +{ $snippet "\"myhost.com\" 9001 123456 \n\"hello\" over to" } ; ABOUT: { "remote-channels" "remote-channels" }