sendChatMessage.json 844 B

1234567891011121314151617181920212223242526272829303132
  1. {
  2. "type" : "object",
  3. "$schema" : "http://json-schema.org/draft-06/schema",
  4. "title" : "Lobby protocol: sendChatMessage",
  5. "description" : "Sent by client when player enters a chat message",
  6. "required" : [ "type", "messageText", "channelType", "channelName" ],
  7. "additionalProperties" : false,
  8. "properties" : {
  9. "type" :
  10. {
  11. "type" : "string",
  12. "const" : "sendChatMessage"
  13. },
  14. "messageText" :
  15. {
  16. "type" : "string",
  17. "description" : "Text of sent message"
  18. },
  19. "channelType" :
  20. {
  21. "type" : "string",
  22. "enum" : [ "global", "match", "player" ],
  23. "description" : "Type of room to which this message has been set."
  24. },
  25. "channelName" :
  26. {
  27. "type" : "string",
  28. "description" : "Name of room to which this message has been set. For 'global' this is language, for 'match' and 'player' this is receiver UUID"
  29. }
  30. }
  31. }