-
Notifications
You must be signed in to change notification settings - Fork 0
WebSockets Documentation
Dmitry Dergunov edited this page Dec 26, 2020
·
1 revision
WebSocket Music10 API
URL | Protocol | Description | ||||
---|---|---|---|---|---|---|
ws.api.music.dergunov.net | wss | |||||
URL Variables
|
Name | Type | Description | Accepted values |
---|---|---|---|
Message Payload | integer |
Playlist id for game |
Any |
""
Name | Type | Description | Accepted values |
---|---|---|---|
id | integer | Any | |
name | string | Any |
{
"id": 1,
"name": "Русский рэп"
}
Name | Type | Description | Accepted values |
---|---|---|---|
Message Payload | object | Any |
{}
Name | Type | Description | Accepted values |
---|---|---|---|
tracks | array(object) |
Array with displayed files |
Any |
tracks.id | integer | Any | |
tracks.author | string | Any | |
tracks.name | string | Any | |
mp3 | string |
URL of mp3 file |
Any |
{
"tracks": [
{
"id": 0,
"author": "string",
"name": "string"
},
{
"id": 0,
"author": "string",
"name": "string"
},
{
"id": 0,
"author": "string",
"name": "string"
},
{
"id": 0,
"author": "string",
"name": "string"
}
],
"mp3": "string"
}
Name | Type | Description | Accepted values |
---|---|---|---|
Message Payload | integer |
Playlist id of user choose |
Any |
""
Name | Type | Description | Accepted values |
---|---|---|---|
correct | integer |
Right Track ID |
Any |
result | object | Any | |
result.progress | array(boolean) |
Boolean array of game progress |
Any |
result.isEnd | boolean |
Game ending flag |
Any |
{
"correct": 0,
"result": {
"progress": [
true
],
"isEnd": true
}
}