Skip to content

Support multiple bridge clients per server#18

Draft
yzx9 wants to merge 1 commit into
mainfrom
feature/mulit-clients
Draft

Support multiple bridge clients per server#18
yzx9 wants to merge 1 commit into
mainfrom
feature/mulit-clients

Conversation

@yzx9

@yzx9 yzx9 commented Apr 22, 2026

Copy link
Copy Markdown
Collaborator
  • Enable a single CopilotJ server to serve multiple ImageJ bridge clients simultaneously
  • Each bridge sends an access token via WebSocket auth event after connecting, allowing the server to identify and route requests to specific clients
  • Web frontend adds a Bridge tab with a client selector dropdown and access token input; all API requests include Authorization: Bearer <token> for the server to resolve the target bridge
  • Backward compatible: no token configured → falls back to first connected client

Bridges authenticate by sending an "auth" WebSocket message after
ID negotiation. The server maps access tokens to client IDs so the
web frontend can route requests to specific bridges. The Settings
UI now has a Bridge tab with a client selector dropdown and access
token input.
@yzx9 yzx9 marked this pull request as draft April 22, 2026 15:30
@yzx9 yzx9 added the enhancement New feature or request label May 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant