Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

WebSocket /interchat/stream?server=string #5

Open
acrylic-style opened this issue Oct 27, 2023 · 0 comments
Open

WebSocket /interchat/stream?server=string #5

acrylic-style opened this issue Oct 27, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@acrylic-style
Copy link
Member

Client → Server

Authentication

{
  "type": "auth",
  "key": "<api key>"
}

Send message

{
  "type": "message",
  "message": "some message"
}

Select guild

{
  "type": "select",
  "guildId": 0
}

Switch server

{
  "type": "switch_server",
  "server": "azisaba.net"
}

Invite a player to the selected guild

{
  "type": "invite",
  "player": "name_not_uuid"
}

Accept or reject an invite

{
  "type": "respond_invite",
  "guildName": "guildname",
  "accept": false
}

Change the nickname of the selected guild

{
  "type": "nick",
  "nickname": "null to reset; any string to set the nickname"
}

Server → Client

Component

{
  "type": "component",
  "message": { "Minecraft component": "serialized with gson" }
}

Error message

{
  "type": "error_message",
  "message": "something went wrong"
}

Message

{
  "type": "message",
  "message": "aiueo"
}
@acrylic-style acrylic-style added the enhancement New feature or request label Oct 27, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant