File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
samples/Management/MessagePublisher Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -108,6 +108,11 @@ private static async Task StartAsync(MessagePublisher publisher)
108
108
var exist = await publisher . CheckExist ( args [ 1 ] . ToLowerInvariant ( ) , args [ 2 ] ) ;
109
109
Console . WriteLine ( exist ? $ "{ args [ 1 ] } '{ args [ 2 ] } ' exists." : $ "{ args [ 1 ] } '{ args [ 2 ] } ' does not exist.") ;
110
110
}
111
+ else if ( args . Length == 2 && args [ 0 ] == "close" )
112
+ {
113
+ await publisher . CloseConnection ( args [ 1 ] , null ) ;
114
+ Console . WriteLine ( $ "Close connection '{ args [ 1 ] } '.") ;
115
+ }
111
116
else
112
117
{
113
118
Console . WriteLine ( $ "Can't recognize command { argLine } ") ;
@@ -132,7 +137,7 @@ send group <Group Name> <Message>
132
137
usergroup add <User Id> <Group Name>
133
138
usergroup remove <User Id> <Group Name>
134
139
broadcast <Message>
135
- close <Connection ID> <Reason>
140
+ close <Connection ID> <Reason>?
136
141
checkexist connection <Connection ID>
137
142
checkexist user <User ID>
138
143
checkexist group <Group Name>
You can’t perform that action at this time.
0 commit comments