Skip to content

Commit

Permalink
add settings dump to socket functionality (#387)
Browse files Browse the repository at this point in the history
  • Loading branch information
RuiSiang committed Aug 25, 2022
1 parent f86bfb5 commit 3b8cee0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions service/util/socket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,14 @@ export default class Client {
case 'shld_set_config':
config[obj.arguments[0]] = obj.arguments[1]
break
case 'shld_fetch_settings':
this.send(
JSON.stringify({
method: 'phlx_update_settings',
arguments: [config],
})
)
break
case 'shld_fetch_stats':
this.send(
JSON.stringify({
Expand Down

0 comments on commit 3b8cee0

Please sign in to comment.