codecombat/app/schemas/subscriptions/bus.coffee

72 lines
1.7 KiB
CoffeeScript
Raw Normal View History

module.exports =
"bus:connecting":
title: "Bus Connecting"
$schema: "http://json-schema.org/draft-04/schema#"
description: "Published when a Bus starts connecting"
type: "object"
properties:
bus:
$ref: "bus"
"bus:connected":
2014-04-13 06:31:12 -04:00
title: "Bus Connected"
$schema: "http://json-schema.org/draft-04/schema#"
description: "Published when a Bus has connected"
type: "object"
properties:
bus:
$ref: "bus"
"bus:disconnected":
2014-04-13 06:31:12 -04:00
title: "Bus Disconnected"
$schema: "http://json-schema.org/draft-04/schema#"
description: "Published when a Bus has disconnected"
type: "object"
properties:
bus:
$ref: "bus"
"bus:new-message":
2014-04-13 09:23:24 -04:00
title: "Message sent"
$schema: "http://json-schema.org/draft-04/schema#"
description: "A new message was sent"
type: "object"
properties:
message:
type: "string"
bus:
$ref: "bus"
"bus:player-joined":
2014-04-13 09:23:24 -04:00
title: "Player joined"
$schema: "http://json-schema.org/draft-04/schema#"
description: "A new player has joined"
type: "object"
properties:
player:
type: "object"
bus:
$ref: "bus"
"bus:player-left":
2014-04-13 09:23:24 -04:00
title: "Player left"
$schema: "http://json-schema.org/draft-04/schema#"
description: "A player has left"
type: "object"
properties:
player:
type: "object"
bus:
$ref: "bus"
"bus:player-states-changed":
2014-04-13 09:23:24 -04:00
title: "Player state changes"
$schema: "http://json-schema.org/draft-04/schema#"
description: "State of the players has changed"
type: "object"
properties:
player:
type: "array"
bus:
$ref: "bus"