jakartaee / jakartaee/websocket

Shared Endpoint support in ServerEndpointConfig.Builder

Open
#189 5 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Java
Stars
78
Forks
47
Avg merge
1h 32m
Merged PRs (30d)
1

Description

A new method should be added to ServerEndpointConfig.Builder to facilitate easy creation of ServerEndpointConfig instances that use a shared Endpoint instance:

For example:

ServerEndpointConfig config = ServerEndpointConfig.Builder
.create(ProgrammaticEndpoint.class, "/bar")
.subprotocols(subprotocols)
.singleThreaded(false).build();

would create a ServerEndpointConfig instance that used a default Configurator instance that shared a single Endpoint instance between all calls to getEndpointInstance(...)
#### Affected Versions
[1.0]

Contributor guide

Open the contributing guide

Research direction

Start by inspecting ServerEndpointConfig.Builder and its existing Configurator handling. Determine the API shape for creating a configuration that reuses one Endpoint instance across getEndpointInstance(...) calls, then check the surrounding tests and add coverage showing shared behavior and preserving existing builder behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.