PSI Server
A backend service for Yellow Cowries application features and APIs.
Status: running.
API base path: /api.
A backend service for Yellow Cowries application features and APIs.
Status: running.
API base path: /api.
This API provides a socket.io interface for the Plan Save Invest game by Yellow Cowries.
PSI Game Server
Accepts the following message:
Inform about any updates to the game state.
{
"id": "string",
"status": "pending",
"activeDeck": [
"string"
],
"spentDeck": [
"string"
],
"players": [
{
"id": "string",
"username": "string",
"avatarUrl": "string",
"points": 0,
"state": "online",
"hand": [
"string"
]
}
],
"activeTrade": {
"targetLetter": "string",
"targetCategory": "string",
"swapCardId": "string",
"offers": [
{
"playerId": "string",
"cardId": "string",
"question": "string",
"options": [
"string"
]
}
]
},
"currentTurn": 6
}
Accepts the following message:
Play against other random players.
Accepts the following message:
Play against friends with a shared code.
Available only on servers:
Accepts the following message:
{
"code": "string"
}
Accepts the following message:
Accepts the following message:
Accepts the following message:
{
"cardId": "string"
}
Make a word with the cards in your hand.
Available only on servers:
Accepts the following message:
{
"cardIds": [
"string"
]
}
Initiate a trade with another player.
Available only on servers:
Accepts the following message:
Initiate a trade with another player.
{
"cardId": "string",
"letter": "s",
"category": "plan"
}
Accept a trade with another player.
Available only on servers:
Accepts the following message:
Accept a trade with another player.
{
"cardId": "string"
}
Reject a trade with another player.
Available only on servers:
Accepts the following message:
Complete a trade with another player.
Available only on servers:
Accepts the following message:
Complete a trade with another player.
{
"offerId": "string",
"answerId": "string"
}
Cancel a trade with another player.
Available only on servers:
Accepts the following message:
Inform about any updates to the game state.
Play against other random players.
Initiate a trade with another player.
Accept a trade with another player.
Complete a trade with another player.
A player in the game.
A trade in the game.
An offer to trade a card.