Skip to content

Extension event (XHandler only)

To handle the event can use on_user() decorator

This extension have only XHandler and command event is not called if enable XHandler

beforexhandler

Called when user entered command before XHandler command

@ssh.on_user("beforexhandler")
def before(client, command):
    # do something

afterxhandler

Called when user entered command after XHandler command

@ssh.on_user("afterxhandler")
def after(client, command):
    # do something