diff --git a/packages/socket/src/packet/acceptor.js b/packages/socket/src/packet/acceptor.js index 40eec23..f00515d 100644 --- a/packages/socket/src/packet/acceptor.js +++ b/packages/socket/src/packet/acceptor.js @@ -6,7 +6,10 @@ export default (socket) => async (packet, fn) => { const Packet = packet.constructor; try { await Packet.validate(packet, socket); - fn(undefined, await Packet.respond(packet, socket)); + const response = await Packet.respond(packet, socket); + if ('undefined' !== typeof response) { + fn(undefined, response); + } } catch (error) { if (error.payload) {