Skip to content

Commit 586a943

Browse files
committed
fix: fix psubscribe not working. Close #32
1 parent b0d3d89 commit 586a943

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

client/components/main/Main/Database/Content/Terminal.jsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,9 @@ class Terminal extends React.Component {
119119
newRedis.on('message', (channel, message) => {
120120
term.echo(formatMessage(channel, message), { raw: true });
121121
});
122+
newRedis.on('pmessage', (pattern, channel, message) => {
123+
term.echo(formatMessage(channel, message), { raw: true });
124+
});
122125
} else {
123126
redis.call.apply(redis, args).then(res => {
124127
term.echo(getHTML(res), { raw: true });

0 commit comments

Comments
 (0)