Allows clients to connect to our Socket.IO server via the WebSocket protocol.
Secure connection (TLS) is available on port 443.
Emitted when a user publishes their track.
Accepts the following message:
{
"type": "tracks.track-published",
"payload": {
"data": {
"id": "string",
"type": "tracks",
"attributes": {
"title": "string",
"lyrics": "string",
"releaseDate": "2019-08-24T14:15:22Z",
"addedAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z",
"duration": 0,
"likesCount": 0,
"dislikesCount": 0,
"attachments": [
{
"id": "string",
"addedAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z",
"version": 0,
"url": "https://cdn.example.com/uploads/track123/cover.jpg",
"contentType": "image/jpeg",
"originalName": "cover.jpg",
"fileSize": 34872
}
],
"images": {
"main": [
{
"type": "original",
"width": 0,
"height": 0,
"fileSize": 0,
"url": "string"
}
]
},
"tags": [
{
"id": "string",
"name": "string"
}
],
"artists": [
{
"id": "string",
"name": "string"
}
],
"user": {
"id": "string",
"name": "string"
},
"isPublished": true,
"publishedAt": "2019-08-24T14:15:22Z",
"currentUserReaction": 0
}
}
}
}
Emitted when someone adds your track to their playlist.
Accepts the following message:
{
"type": "tracks.track-added-to-playlist",
"payload": {
"trackId": "string",
"trackTitle": "string",
"playlistId": "string",
"playlistTitle": "string",
"userId": "string",
"userName": "string"
}
}
Emitted when someone likes your track.
Accepts the following message:
{
"type": "tracks.track-liked",
"payload": {
"trackId": "string",
"trackTitle": "string",
"userId": "string",
"userName": "string"
}
}
Emitted when thumbnails for a track image are generated.
Accepts the following message:
{
"type": "tracks.track-image-processed",
"payload": {
"itemId": "string",
"images": {
"main": [
{
"type": "original",
"width": 0,
"height": 0,
"fileSize": 0,
"url": "string"
}
]
}
}
}
Emitted when thumbnails for a playlist image are generated.
Accepts the following message:
{
"type": "tracks.playlist-image-processed",
"payload": {
"itemId": "string",
"images": {
"main": [
{
"type": "original",
"width": 0,
"height": 0,
"fileSize": 0,
"url": "string"
}
]
}
}
}
Emitted when a playlist is created.
Accepts the following message:
{
"type": "tracks.playlist-created",
"payload": {
"data": {
"id": "string",
"type": "playlists",
"attributes": {
"title": "string",
"description": "string",
"addedAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z",
"order": 0,
"user": {
"id": "string",
"name": "string"
},
"images": {
"main": [
{
"type": "original",
"width": 0,
"height": 0,
"fileSize": 0,
"url": "string"
}
]
},
"tags": [
{
"id": "string",
"name": "string"
}
],
"likesCount": 0,
"dislikesCount": 0,
"currentUserReaction": 0
}
}
}
}
Emitted when playlist information is updated (description, title, image, etc.).
Accepts the following message:
{
"type": "tracks.playlist-updated",
"payload": {
"data": {
"id": "string",
"type": "playlists",
"attributes": {
"title": "string",
"description": "string",
"addedAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z",
"order": 0,
"user": {
"id": "string",
"name": "string"
},
"images": {
"main": [
{
"type": "original",
"width": 0,
"height": 0,
"fileSize": 0,
"url": "string"
}
]
},
"tags": [
{
"id": "string",
"name": "string"
}
],
"likesCount": 0,
"dislikesCount": 0,
"currentUserReaction": 0
}
}
}
}
Type of the image size (e.g., original, thumbnail variants)
User reaction: 0 – guest or no reaction; 1 – like; -1 – dislike