File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3436,17 +3436,25 @@ export class DebugCtrl extends entitiesCtrl<Base> {
34363436 } ) ;
34373437 }
34383438 async DumpClients ( ) {
3439- let m : Message = new Message ( ) ;
3440- m . command = "dumpclients" ; m . data = "{}" ;
3441- var q = await WebSocketClient . instance . Send < any > ( m ) ;
3442- if ( ( q as any ) . command == "error" ) throw new Error ( q . data ) ;
3439+ try {
3440+ let m : Message = new Message ( ) ;
3441+ m . command = "dumpclients" ; m . data = "{}" ;
3442+ var q = await WebSocketClient . instance . Send < any > ( m ) ;
3443+ if ( ( q as any ) . command == "error" ) throw new Error ( q . data ) ;
3444+ } catch ( error ) {
3445+ console . error ( error ) ;
3446+ }
34433447 this . loadData ( ) ;
34443448 }
34453449 async DumpRabbitmq ( ) {
3446- let m : Message = new Message ( ) ;
3447- m . command = "dumprabbitmq" ; m . data = "{}" ;
3448- var q = await WebSocketClient . instance . Send < any > ( m ) ;
3449- if ( ( q as any ) . command == "error" ) throw new Error ( q . data ) ;
3450+ try {
3451+ let m : Message = new Message ( ) ;
3452+ m . command = "dumprabbitmq" ; m . data = "{}" ;
3453+ var q = await WebSocketClient . instance . Send < any > ( m ) ;
3454+ if ( ( q as any ) . command == "error" ) throw new Error ( q . data ) ;
3455+ } catch ( error ) {
3456+ console . error ( error ) ;
3457+ }
34503458 this . loadData ( ) ;
34513459 }
34523460}
Original file line number Diff line number Diff line change 1- < button ng-click ="ctrl.DumpClients() " type ="button " class ="btn btn-success "> Dump Clients</ button >
2- < button ng-click ="ctrl.DumpRabbitmq() " type ="button " class ="btn btn-success "> Dump Rabbitmq</ button >
3- < button ng-click ="ctrl.loadData() " type ="button " class ="btn btn-success "> Reload</ button >
1+ < button ng-click ="ctrl.DumpClients() " ng-disabled ="ctrl.loading==true " type ="button " class ="btn btn-success "> Dump
2+ Clients</ button >
3+ < button ng-click ="ctrl.DumpRabbitmq() " ng-disabled ="ctrl.loading==true " type ="button " class ="btn btn-success "> Dump
4+ Rabbitmq</ button >
5+ < button ng-click ="ctrl.loadData() " ng-disabled ="ctrl.loading==true " type ="button "
6+ class ="btn btn-success "> Reload</ button >
47
58< table id =" table1 " class ="table table-striped table-hover table-sm " when-scrolled ="ctrl.more() " style ="width: 100%; ">
69 < thead class ="thead-dark ">
You can’t perform that action at this time.
0 commit comments