{"id":55924,"library":"websocket-api","title":"Jetty WebSocket API","description":"WebSocket API for the Eclipse Jetty server.","status":"active","version":"9.4.58.v20250814","language":"java","source_language":null,"source_url":"https://github.com/jetty/jetty.project","tags":["jetty","websocket","server"],"install":[{"cmd":"<dependency>\n  <groupId>org.eclipse.jetty.websocket</groupId>\n  <artifactId>websocket-api</artifactId>\n  <version>9.4.58.v20250814</version>\n</dependency>","lang":"xml","label":"Maven"},{"cmd":"implementation 'org.eclipse.jetty.websocket:websocket-api:9.4.58.v20250814'","lang":"groovy","label":"Gradle"}],"dependencies":[],"imports":[{"symbol":"WebSocketAdapter","correct":"org.eclipse.jetty.websocket.api"}],"quickstart":{"code":"import org.eclipse.jetty.websocket.api.Session;\nimport org.eclipse.jetty.websocket.api.WebSocketAdapter;\npublic class MySocket extends WebSocketAdapter {\n    @Override\n    public void onWebSocketText(String message) {\n        System.out.println(\"Received: \" + message);\n    }\n}","lang":"java","description":"Create a WebSocket endpoint by extending WebSocketAdapter."},"warnings":[{"fix":"Use org.eclipse.jetty.websocket:websocket-core-server for Jetty 12.","message":"Jetty 9.x is end-of-life; consider upgrading to Jetty 12.","severity":"breaking","affected_versions":"9.4.x"}],"env_vars":null,"search_vec":"'api':3,5 'eclips':8 'jetti':1,9,11 'server':10,13 'websocket':2,4,12","created_at":"2026-06-15T10:13:21.635931+00:00","updated_at":"2026-06-15T10:13:21.635931+00:00","problems":[],"ecosystem":"maven","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://jetty.org/","github":"https://github.com/jetty/jetty.project","docs":"https://appdoc.app/artifact/org.eclipse.jetty.websocket/websocket-api/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["networking"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-15","next_check":"2026-12-12","install_tag":null}}