---
# System prepended metadata

title: MCSLiteLE Socket.io API

---

# MCSLiteLE Socket.io API

## User

Event Name: `userRegistered`

| This event will be fired when a user got registered.

Response:
```json
{
    "id": 3,
    "username": "ll931217",
    "groupID": 1,
    "areaGroupID": 3,
    "lastUpdated": "2021-02-05T08:10:45.970000"
}
```

Event Name: `userUpdated`

| This event will be fired when a user data is updated.

Response:
```json
{
    "id": 3,
    "username": "ll931217",
    "groupID": 1,
    "areaGroupID": 3,
    "lastUpdated": "2021-02-05T08:10:45.970000"
}
```

Event Name: `userDeleted`

| This event will be fired when a user data is deleted.

Response:
```json
{
    "id": 3
}
```

## Permission Group

Event Name: `permissionGroupCreated`

| This event will be fired when a new permission group is created

Response:
```json
{
    "id": 6,
    "name": "CIMAdmin",
    "user": [
        <Users>,
        ...
    ],
    "groupPermission": [
        <Permissions>
    ],
    "createdAt": "2021-02-20T01:12:59.073000",
    "lastUpdated": "2021-02-20T01:12:59.073000"
}
```

Event Name: `permissionGroupUpdated`

Response:
```json
{
    "id": 6,
    "name": "CIMTest",
    "user": [
        <Users>,
        ...
    ],
    "groupPermission": [
        <Permissions>
    ],
    "createdAt": "2021-02-20T01:12:59.073000",
    "lastUpdated": "2021-02-20T01:12:59.073000"
}
```

Event Name: `permissionGroupDeleted`

Response:
```json
{
    "id": 6
}
```

## Permission

Event Name: `permissionCreated`

Response:
```json
[
    {
        "id": 23,
        "name": "Transfer List 看板",
        "groupPermission": [
            {
                "groupID": 1,
                "permissionID": 23,
                "permission": "admin",
                "createdAt": "2021-02-22T05:32:37.350000",
                "lastUpdated": "2021-02-22T05:32:37.350000"
            }
        ],
        "createdAt": "2021-02-22T05:32:37.350000",
        "lastUpdated": "2021-02-22T05:32:37.350000"
    }
]
```

Event Name: `permissionUpdated`

```json
{
    "id": 23,
    "name": "Transfer List 看板 TEST",
    "permission": "view"
}
```

Event Name: `permissionDeleted`

```json
{
    "id": 23
}
```