Skip to content

WebSocket /interchat/stream?server=string #5

Description

@acrylic-style

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"
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions