Registry / networking / websocket-common

websocket-common

JSON →
library9.4.58.v20250814javamavenunverified

Common classes for Jetty WebSocket implementations, providing core WebSocket protocol support.

<dependency> <groupId>org.eclipse.jetty.websocket</groupId> <artifactId>websocket-common</artifactId> <version>9.4.58.v20250814</version> </dependency>
INSTALL
IMPORT
SIG · WEBSOCKET-COMMON
W
websocket-common
networkingjavav9.4.58.v20250814
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

WebSocketSession
✓ org.eclipse.jetty.websocket.common.WebSocketSession

Demonstrates creating a WebSocket session and sending a message.

import org.eclipse.jetty.websocket.common.WebSocketSession; import org.eclipse.jetty.websocket.api.Session; public class Example { public static void main(String[] args) { // Typically obtained from a WebSocket connection Session session = new WebSocketSession(); session.getRemote().sendString("Hello"); } }
Debug
Known issues
breakingJetty 9.x WebSocket API differs significantly from Jetty 10+; this package is for Jetty 9.x.
fix
Use org.eclipse.jetty.websocket:websocket-core for Jetty 10+.
affects: >=10.0.0
Upgrade
Version history
9.4.58.v20250814latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
17 hits · last 30 days
node
16
OpenAI (training)
1
Resources
websocket-common — mvn dependency:get websocket-common · libregistry