liamks/Delivery.js — pull request #5 by troyth (2013-08-11 02:07:34+00:00)
Title: Fix to receive.start listener

Seemed to be two typos in the receive.start listener on line 125 and 126: missing _this prefix on pubSub on line 125, and missing second parameter, _this.pubSub, in the FilePackage constructor on line 126. The latter was causing the FilePackage constructor to go into send mode, rather than receive mode, so it was expecting a file.path, which it shouldn't have when the server is simply sending a confirmation message to the client on successful file reception.