Skip to content

Commit

Permalink
fix: fix psubscribe not working. Close #32
Browse files Browse the repository at this point in the history
  • Loading branch information
luin committed Nov 18, 2016
1 parent b0d3d89 commit 586a943
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions client/components/main/Main/Database/Content/Terminal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ class Terminal extends React.Component {
newRedis.on('message', (channel, message) => {
term.echo(formatMessage(channel, message), { raw: true });
});
newRedis.on('pmessage', (pattern, channel, message) => {
term.echo(formatMessage(channel, message), { raw: true });
});
} else {
redis.call.apply(redis, args).then(res => {
term.echo(getHTML(res), { raw: true });
Expand Down

0 comments on commit 586a943

Please sign in to comment.