diff --git a/index.js b/index.js index ea1cf3a..19bef2b 100644 --- a/index.js +++ b/index.js @@ -547,7 +547,7 @@ class Dalai { connect(req, cb) { const socket = io(req.url) socket.emit('request', req) - socket.on('response', cb) + socket.on('result', cb) socket.on('error', function(e) { throw e });