jakartaee / jakartaee/websocket

Give WebSocketContainer on the client side a lifecycle

Open
#212 3 comments 1 reaction 0 assignees View on GitHub
API (Both) enhancement
Dominant language
Java
Stars
78
Forks
47
Avg merge
1h 32m
Merged PRs (30d)
1

Description

Currently there is no way for the implementation to know when the developer has finished using each instance of the WebSocketContainer. If the developer uses ContainerProvider.getWebSocketContainer() to obtain many instances, this is difficult to manage for the implementation.

Consider adding a lifecycle so the implementation can clean up.

Contributor guide

Open the contributing guide

Research direction

Start by reviewing WebSocketContainer and ContainerProvider.getWebSocketContainer() to understand how client-side instances are obtained and used. Define the lifecycle and cleanup behavior the implementation should observe, then identify the API and compatibility implications. Done means the lifecycle is specified clearly and validated with tests for obtaining, finishing, and cleaning up container instances.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api, backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.