Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Apr 18, 2011
1 parent 271133a commit 00eaa0a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs/repl.md
Expand Up @@ -7,15 +7,15 @@

The `repl([port | path])` accepts a `port` or unix domain socket `path`, after which you may telnet to at any time.

Launch the __REPL__ on port _8888_:
Launch the __REPL__ with a local socket:

cluster(server)
.use(cluster.repl(8888, '127.0.0.1'))
.use(cluster.repl('/var/run/cluster.sock'))
.listen(3000);

Start a telnet session:

$ telnet localhost 8888
$ telnet /var/run/cluster.sock

cluster> help()

Expand All @@ -30,6 +30,7 @@ Start a telnet session:
echo(msg): echo the given message
stats(): Display server statistics

__NOTE__: a local socket is recommended, otherwise this may be a secure hole.

### pids()

Expand Down

0 comments on commit 00eaa0a

Please sign in to comment.