how to let a client offline from tigase
how to let a client offline from tigase?
Added by Artur Hefczyc over 5 years ago
I am afraid there is no admin command for this task yet. Apparently there was no need to do such thing. Please have a look at current list of admin command and use them as an example to implement own command for disconnecting user. Among others the DeleteUser script might be the best example as it deletes user from DB and disconnects the user if he is connected to the server:
Added by Wojciech Kapcia over 5 years ago
what do you mean 'in java code'? Tigase scripting capabilities use JSR-223 and in Tigase all scripts are either loaded during startup (thus has to be in
scripts/ directory or within path configured in init.properties: @--script-dir=path@) or can be loaded to running server using admin ad-hoc commands mentioned by Artur. If you want to run those scripts without running Tigase then you could use groovy console, but this isn't any kind of solution as those scripts are tightly coupled to Tigase internals (there are running within Tigase components) thus they will fail without Tigase running.