From 69e282cf761eba73b94094ead00bc8c6411c1af3 Mon Sep 17 00:00:00 2001 From: mok-liee <6745620+mok-liee@users.noreply.github.com> Date: Wed, 29 Mar 2023 01:08:17 +0200 Subject: [PATCH] fix: change response channel name from response to result --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 });