diff --git a/assets/create-glee-app/templates/default/asyncapi.yaml b/assets/create-glee-app/templates/default/asyncapi.yaml index 2e77ec64d71..52e7735721a 100644 --- a/assets/create-glee-app/templates/default/asyncapi.yaml +++ b/assets/create-glee-app/templates/default/asyncapi.yaml @@ -1,23 +1,25 @@ -asyncapi: 2.6.0 +asyncapi: 3.0.0 info: - title: Hello, Glee! + title: 'Hello, Glee!' version: 0.1.0 - servers: websockets: - url: ws://0.0.0.0:3000 + host: '0.0.0.0:3000' protocol: ws - channels: hello: - publish: - operationId: onHello - message: + address: hello + messages: + hello: $ref: '#/components/messages/hello' - subscribe: - message: - $ref: '#/components/messages/hello' - +operations: + onHello: + action: receive + channel: + $ref: '#/channels/hello' + reply: + channel: + $ref: '#/channels/hello' components: messages: hello: