MentDB, The digital brain.  About me Home
Back / All functions / Session

You have control functions of web socket session.
You have control functions of database session.

WS Session

@chat@cmdid@count sessions@sessions@sid

DB Session

byecmdidcount sessionsexithelpquitsessionssidwho

@chat

Description

    To change the mode to CHAT.

admin
@chat
mentdb
CHAT mode activated (do not use directly with the editor, only in your application with the web socket driver).

@cmdid

Description

    To show the number of web socket command executed by the current user

admin
@cmdid
mentdb
5

@count sessions

Description

    To count all open web socket sessions

admin
@count sessions
mentdb
1

@sessions

Description

    To show open web socket sessions

admin
@sessions
mentdb
[
{
"maxUsable": 600,
"nbExecution": 5,
"id": 2,
"used": 0,
"user": "admin",
"life": "0/600s"
}
]

@sid

Description

    To show current web socket session id

admin
@sid
mentdb
3

bye

Description

    To close the session (or exit or quit)

admin
bye
mentdb
Session close with successful.

cmdid

Description

    To show the number of command executed by the current user

admin
cmdid
mentdb
25

count sessions

Description

    To count all open sessions

admin
count sessions
mentdb
3

exit

Description

    To close the session (or bye or quit)

admin
exit
mentdb
Session close with successful.

help

Description

    To show this help menu

quit

Description

    To close the session (or exit or quit)

admin
quit
mentdb
Session close with successful.

sessions

Description

    To show all open sessions

admin
sessions
mentdb
[
{
"maxUsable": 600,
"nbExecution": 2,
"used": 0,
"id": 4,
"user": "admin",
"life": "0/600s"
}
]

sid

Description

    To show current session id

admin
sid
mentdb
5

who

Description

    To show the current user

admin
who
mentdb
admin




© 2012-2017 - Jimmitry Payet.