Skip to content

Add support of WebSocket protocol #359

@Tenischev

Description

@Tenischev

Reason/Context

WebSocket is one of the chose when we need establish connection between backend server and (usually web) client.
Spring-WebSocket is relatively popular library among users (353 usages + 937 usages according to maven).
At the moment template support only mqtt, amqp and kafka protocols.

Description

Provide support for WebSocket (wss) protocol using spring-websocket and\or spring-integration-websocket.
Implementation should be aware of STOPM limitations and\or have SockJS fallback.

  • Create dedicate Publisher and Config in partials.
  • Update PublisherService, Config, MessageHandlerService and CommandLinePublisher template files.
  • Create Java tests, update 02_removeNotRelevantParts.js to avoid presence of wss tests in other protocol generation.
  • Create npm snapshot tests with providing corresponding mock API.

Docs and guides:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions