Skip to content

Commit

Permalink
update README to use 127.0.0.1 instead of localhost since I just got …
Browse files Browse the repository at this point in the history
…bit by ipv6 versus ipv4 confusion
  • Loading branch information
williamstein committed Oct 14, 2024
1 parent bbc63b4 commit c5b0678
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions websocketfs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ More concretely:

```js
// In your first terminal
require('websocketfs').serve({path:process.env.HOME, port:'3456', host:'localhost'})
require('websocketfs').serve({path:process.env.HOME, port:'3456', host:'127.0.0.1'})
```

```js
// In your second terminal
require('websocketfs').mount({path:'/tmp/mnt', remote:'ws://localhost:3456'})
require('websocketfs').mount({path:'/tmp/mnt', remote:'ws://127.0.0.1:3456'})
```

Now /tmp/mnt should show the same files as your home directory. Note the ws://localhost:3456 filesystem below.
Expand Down

0 comments on commit c5b0678

Please sign in to comment.