Documentation for Socket API. For more information about SocketIO, please visit the SocketIO website.
Click here to return on the main page.
Depending on your client language, the namespaces and the path are not defined in the same way. SocketIO is not a standard websocket library, you might required additional setting defined in channel bindings.
Accepts one of the following messages:
Event emitted when the connection has been established. No payload returned.
Event emitted when the client is disconnected by itself or by the server.
string
General error handler event.
{
"message": "string"
}
Error handler event when something went wrong during connection. Do not auto-reconnect on this event and look properly at the error.
{
"message": "string"
}
Event received when your application has been kicked out from a room. This can happen if a player token has been revoked.
{
"clan_code": "string",
"namespace": "string",
"token": "b5507016-7da2-4777-a161-1e8042a6a377"
}
Start attack log. You receive this event for the clan you have registered to.
{
"clan_code": "string",
"raid_id": 0,
"player": {
"name": "string",
"player_code": "string"
},
"cards": [
"MoonBeam"
],
"started_at": "2019-08-24T14:15:22Z"
}
Raid attack log. You receive this event for the clan you have registered to.
{
"clan_code": "string",
"raid_id": 0,
"cycle": 0,
"player": {
"name": "string",
"player_code": "string",
"raid_level": 0,
"attacks_remaining": 0
},
"attack_log": {
"cards_damage": [
{
"titan_index": 0,
"id": "string",
"damage_log": [
{
"id": "ArmorLegUpperRight",
"value": 0
}
]
}
],
"cards_level": [
{
"id": "MoonBeam",
"value": 0
}
],
"attack_datetime": "2019-08-24T14:15:22Z"
},
"raid_state": {
"titan_index": 0,
"current": {
"current_hp": 0,
"enemy_id": "Enemy1",
"parts": [
{
"part_id": "ArmorLegUpperRight",
"current_hp": 0
}
]
}
}
}
Start raid log. You receive this event for the clan you have registered to.
{
"clan_code": "string",
"raid_id": 0,
"player": {
"name": "string",
"player_code": "string"
},
"keys_remaining": 2,
"morale": {
"bonus_amount": 0.1,
"used": 0
},
"raid": {
"level": 0,
"tier": 0,
"spawn_sequence": [
"Lojak"
],
"titans": [
{
"enemy_name": "Lojak",
"enemy_id": "Enemy1",
"total_hp": 0,
"parts": [
{
"part_id": "ArmorLegUpperRight",
"total_hp": 0
}
]
}
]
},
"start_at": "2019-08-24T14:15:22Z"
}
Start raid log. This event is sent when you subscribe to a new clan.
{
"clan_code": "string",
"raid_id": 0,
"keys_remaining": 2,
"morale": {
"bonus_amount": 0.1,
"used": 0
},
"raid": {
"level": 0,
"tier": 0,
"spawn_sequence": [
"Lojak"
],
"titans": [
{
"enemy_name": "Lojak",
"enemy_id": "Enemy1",
"total_hp": 0,
"parts": [
{
"part_id": "ArmorLegUpperRight",
"total_hp": 0
}
]
}
]
},
"titan_target": [
{
"enemy_id": "Enemy1",
"state": [
{
"id": "Head",
"state": 0
}
]
}
],
"start_at": "2019-08-24T14:15:22Z"
}
End raid log. You receive this event for the clan you have registered to.
{
"clan_code": "string",
"raid_id": 0,
"ended_at": "2019-08-24T14:15:22Z",
"keys_remaining": 2,
"raid_summary": [
{
"player_code": "string",
"name": "string",
"num_attacks": 0,
"total_damage": 0,
"log": [
{
"enemy_id": "Enemy1",
"titan_index": 0,
"damage_log": [
{
"id": "ArmorLegUpperRight",
"value": 0
}
]
}
]
}
]
}
Retire raid log. You receive this event for the clan you have registered to.
{
"clan_code": "string",
"raid_id": 0,
"retired_at": "2019-08-24T14:15:22Z",
"player": {
"name": "string",
"player_code": "string"
},
"keys_remaining": 2,
"raid_summary": [
{
"player_code": "string",
"name": "string",
"num_attacks": 0,
"total_damage": 0,
"log": [
{
"enemy_id": "Enemy1",
"titan_index": 0,
"damage_log": [
{
"id": "ArmorLegUpperRight",
"value": 0
}
]
}
]
}
]
}
Cycle reset log. You receive this event for the clan you have registered to.
{
"clan_code": "string",
"raid_id": 0,
"started_at": "2019-08-24T14:15:22Z",
"raid_started_at": "2019-08-24T14:15:22Z",
"next_reset_at": "2019-08-24T14:15:22Z",
"morale": {
"bonus_amount": 0.1,
"used": 0
},
"card_bonuses": [
{
"id": "TeamTacticsClanMoraleBoost",
"value": 0
}
]
}
Cycle reset log. This event is sent when you subscribe to a new clan.
{
"clan_code": "string",
"raid_id": 0,
"morale": {
"bonus_amount": 0.1,
"used": 0
},
"raid": {
"level": 0,
"tier": 0,
"spawn_sequence": [
"Lojak"
],
"titans": [
{
"enemy_name": "Lojak",
"enemy_id": "Enemy1",
"total_hp": 0,
"parts": [
{
"part_id": "ArmorLegUpperRight",
"total_hp": 0
}
]
}
]
},
"titan_target": [
{
"enemy_id": "Enemy1",
"state": [
{
"id": "Head",
"state": 0
}
]
}
],
"raid_started_at": "2019-08-24T14:15:22Z",
"next_reset_at": "2019-08-24T14:15:22Z",
"card_bonuses": [
{
"id": "TeamTacticsClanMoraleBoost",
"value": 0
}
]
}
Titan targets change log. You receive this event for the clan you have registered to.
{
"clan_code": "string",
"raid_id": 0,
"updated_at": "2019-08-24T14:15:22Z",
"player": {
"name": "string",
"player_code": "string"
},
"enemy_id": "Enemy1",
"state": [
{
"id": "Head",
"state": 0
}
]
}
Join a clan log. You receive this event for the clan you have registered to.
{
"clan_code": "string",
"player": {
"name": "string",
"player_code": "string"
}
}
Leave a clan log. You receive this event for the clan you have registered to.
{
"clan_code": "string",
"player": {
"name": "string",
"player_code": "string"
}
}
Get kicked from a clan log. You receive this event for the clan you have registered to.
{
"clan_code": "string",
"player": {
"name": "string",
"player_code": "string"
},
"executor": {
"name": "string",
"player_code": "string"
}
}
Morale collection log. You receive this event for the clan you have registered to.
{
"clan_code": "string",
"player": {
"name": "string",
"player_code": "string"
},
"amount": 0,
"total_amount": 0
}
Resync clan when some event is happening. You receive this event for the clan you have registered to.
{
"clan_code": "string",
"clan_name": "string"
}
Accepts one of the following messages:
Event emitted when the connection has been established. No payload returned.
Event emitted when the client is disconnected by itself or by the server.
string
General error handler event.
{
"message": "string"
}
Error handler event when something went wrong during connection. Do not auto-reconnect on this event and look properly at the error.
{
"message": "string"
}
Event emitted when the connection has been established. No payload returned.
Event emitted when the client is disconnected by itself or by the server.
General error handler event.
Error handler event when something went wrong during connection. Do not auto-reconnect on this event and look properly at the error.
Event received when your application has been kicked out from a room. This can happen if a player token has been revoked.
Start attack log. You receive this event for the clan you have registered to.
Raid attack log. You receive this event for the clan you have registered to.
Start raid log. You receive this event for the clan you have registered to.
Start raid log. This event is sent when you subscribe to a new clan.
End raid log. You receive this event for the clan you have registered to.
Retire raid log. You receive this event for the clan you have registered to.
Cycle reset log. You receive this event for the clan you have registered to.
Cycle reset log. This event is sent when you subscribe to a new clan.
Titan targets change log. You receive this event for the clan you have registered to.
Join a clan log. You receive this event for the clan you have registered to.
Leave a clan log. You receive this event for the clan you have registered to.
Get kicked from a clan log. You receive this event for the clan you have registered to.
Morale collection log. You receive this event for the clan you have registered to.
Resync clan when some event is happening. You receive this event for the clan you have registered to.
0 = No target, 1 = Crossed, 2 = Checked.