Skip to content
This repository has been archived by the owner on Nov 25, 2017. It is now read-only.

add destroy alias on receiving streams #2

Merged
merged 1 commit into from
Sep 7, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ function Connection (conn) {

conn.on('stream', function (stream) {
stream.respond(200, {})
stream.destroy = stream.abort

self.emit('stream', stream)
})

Expand Down