Skip to content

Latest commit

 

History

History

code-executor

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

in::room::new-user-request

Request to join the room by room id

Params:
{
  "room_id": "String|Number",
  "user_id": "String|Number"
}

in::room::change-language

Request to change room language.

Prarams:
{
  "language": "String"
}

out::room::new-user

Notification everyone in the room that a new user was joined

Body:
{
  "user_id": "String"
}

out::room::user-leave

Notification everyone in the room that the user leaves the room

Body:
{
  "user_id": "String"
}

in::code::execute

Request to execute code

Params:
{
  "code": "String"
}

out::stdout::send

Result of the execution

Body:
{
  "data": "String"
}

out::stdou::error

Error of the execution

Body:
{
  "error": "String"
}

in::stdin::send

Request to the process stdin

Params:
{
  "message": "String"
}

admin::room::create

Request to create a new room. Note: Tou need to be in /admin room

Body:
{
  "id": "String|Number",
  "token": "String"
}

admin::room::delete

Request to delete an existing room. Note: Tou need to be in /admin room

Body:
{
  "id": "String|Number"
}

Future plans

  • Rewrite all on TypeScript