Skip to content

Commit

Permalink
Update README to use async stream API.
Browse files Browse the repository at this point in the history
  • Loading branch information
moll committed Oct 16, 2018
1 parent 5b9be31 commit 6d52226
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ issue][issues] on GitHub.
var socket = Net.connect(22, "example.org")
socket.write("Hello!")
socket.setEncoding("utf8")
socket.read() // => "Hello back!"
socket.on("data", console.log) // => "Hello back!"
```

- When you do **HTTP or HTTPS** requests, Mitm.js gives you both
Expand Down Expand Up @@ -149,7 +149,7 @@ mitm.on("connection", function(socket) { socket.write("Hello back!") })
var socket = Net.connect(22, "example.org")
socket.write("Hello!")
socket.setEncoding("utf8")
socket.read() // => "Hello back!"
socket.on("data", console.log) // => "Hello back!"
```

### Intercepting HTTP/HTTPS requests
Expand Down

0 comments on commit 6d52226

Please sign in to comment.