{"id":66801,"library":"jakarta-websocket-client-api","title":"Jakarta WebSocket Client API","description":"Provides the client-side API for WebSocket communication in Jakarta EE.","status":"active","version":"2.2.0","language":"java","source_language":null,"source_url":"https://github.com/eclipse-ee4j/websocket-api","tags":["websocket","jakarta","client","api","realtime"],"install":[{"cmd":"<dependency>\n  <groupId>jakarta.websocket</groupId>\n  <artifactId>jakarta.websocket-client-api</artifactId>\n  <version>2.2.0</version>\n</dependency>","lang":"xml","label":"Maven"},{"cmd":"implementation 'jakarta.websocket:jakarta.websocket-client-api:2.2.0'","lang":"groovy","label":"Gradle"}],"dependencies":[],"imports":[{"symbol":"ClientEndpoint","correct":"jakarta.websocket.ClientEndpoint"}],"quickstart":{"code":"import jakarta.websocket.ClientEndpoint;\nimport jakarta.websocket.OnMessage;\n\n@ClientEndpoint\npublic class MyClient {\n    @OnMessage\n    public void onMessage(String message) {\n        System.out.println(\"Received: \" + message);\n    }\n}","lang":"java","description":"Defines a WebSocket client endpoint."},"warnings":[{"fix":"Use jakarta.websocket for Jakarta EE 9+ or javax.websocket for Java EE 8.","message":"This is the Jakarta EE 9+ API; use javax.websocket for older versions.","severity":"breaking","affected_versions":">=2.0.0"}],"env_vars":null,"search_vec":"'api':4,10,20 'client':3,8,19 'client-sid':7 'communic':13 'ee':16 'jakarta':1,15,18 'provid':5 'realtim':21 'side':9 'websocket':2,12,17","created_at":"2026-06-17T17:28:49.310808+00:00","updated_at":"2026-06-17T17:28:49.310808+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://projects.eclipse.org/projects/ee4j.websocket","github":"https://github.com/eclipse-ee4j/websocket-api","docs":"https://appdoc.app/artifact/jakarta.websocket/jakarta.websocket-client-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-17","next_check":"2026-12-14","install_tag":null}}