From bb029ca16d6a55b3bbad6572c5046a46771482b1 Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Sat, 22 Mar 2014 23:48:26 -0700 Subject: [PATCH] readme --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e26ba55..02abcd4 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,10 @@ net.createServer(function (socket) { To add support for BEP 9, simply modify your code like this: ```js +var Protocol = require('bittorrent-protocol') +var net = require('net') +var ut_metadata = require('ut_metadata') + net.createServer(function (socket) { var wire = new Protocol() socket.pipe(wire).pipe(socket) @@ -74,7 +78,6 @@ net.createServer(function (socket) { }) }).listen(6881) - ``` ## methods