CometD :: Java :: WebSocket :: OkHttp Client

The CometD project is a scalable web messaging bus that uses WebSocket and HTTP AJAX push technology patterns known as "Comet" techniques

License

License

Categories

Categories

Java Languages CLI User Interface
GroupId

GroupId

org.cometd.java
ArtifactId

ArtifactId

cometd-java-websocket-okhttp-client
Last Version

Last Version

4.0.9
Release Date

Release Date

Type

Type

jar
Description

Description

CometD :: Java :: WebSocket :: OkHttp Client
The CometD project is a scalable web messaging bus that uses WebSocket and HTTP AJAX push technology patterns known as "Comet" techniques
Project Organization

Project Organization

The CometD Project

Download cometd-java-websocket-okhttp-client

How to add to project

<!-- https://jarcasting.com/artifacts/org.cometd.java/cometd-java-websocket-okhttp-client/ -->
<dependency>
    <groupId>org.cometd.java</groupId>
    <artifactId>cometd-java-websocket-okhttp-client</artifactId>
    <version>4.0.9</version>
</dependency>
// https://jarcasting.com/artifacts/org.cometd.java/cometd-java-websocket-okhttp-client/
implementation 'org.cometd.java:cometd-java-websocket-okhttp-client:4.0.9'
// https://jarcasting.com/artifacts/org.cometd.java/cometd-java-websocket-okhttp-client/
implementation ("org.cometd.java:cometd-java-websocket-okhttp-client:4.0.9")
'org.cometd.java:cometd-java-websocket-okhttp-client:jar:4.0.9'
<dependency org="org.cometd.java" name="cometd-java-websocket-okhttp-client" rev="4.0.9">
  <artifact name="cometd-java-websocket-okhttp-client" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.cometd.java', module='cometd-java-websocket-okhttp-client', version='4.0.9')
)
libraryDependencies += "org.cometd.java" % "cometd-java-websocket-okhttp-client" % "4.0.9"
[org.cometd.java/cometd-java-websocket-okhttp-client "4.0.9"]

Dependencies

compile (2)

Group / Artifact Type Version
org.cometd.java : cometd-java-websocket-common-client jar 4.0.9
com.squareup.okhttp3 : okhttp jar 4.9.0

test (3)

Group / Artifact Type Version
junit : junit jar 4.13.1
org.hamcrest : hamcrest jar 2.2
org.apache.logging.log4j : log4j-slf4j-impl jar 2.13.3

Project Modules

There are no modules declared in this project.

GitHub CI

The CometD Project

Welcome to the CometD Project, a scalable comet (server push) implementation for the web.

License

The CometD source code is released under the Apache 2.0 License.

Directory Layout

cometd-archetypes - The Maven archetypes for quick application development
cometd-demo       - Demo of the Java server and of the Dojo/jQuery clients
cometd-java       - The Java server and java client libraries
cometd-javascript - The JavaScript (Dojo/jQuery) client libraries

Running the CometD Demo

If you have downloaded the release bundle, then the CometD is already built for you. To run the demonstration with Maven, unzip the release bundle and execute:

$ cd cometd-demo
$ mvn jetty:run

then point your browser at http://localhost:8080

Alternately you can deploy the CometD demo war file into any Servlet 2.5 or later server (e.g. jetty, tomcat, glassfish) with commands like:

$ cp cometd-demo/target/cometd-demo/target/cometd-demo-*.war  $MY_SERVER/webapps/cometd.war
cd $MY_SERVER
<command to run my server>

Reporting Issues

Issues, bugs and requests for enhancements should be filed at https://bugs.cometd.org

Building CometD

If you have cloned the source release, follow the instructions at https://docs.cometd.org/current/reference/#_build, or just do:

$ mvn install

Load Testing CometD

To run load testing, open two windows. In the server window run:

$ cd cometd-java/cometd-java-benchmark/cometd-java-benchmark-server/
$ mvn exec:exec

In the client window (potentially on another machine), run

$ cd cometd-java/cometd-java-benchmark/cometd-java-benchmark-client/
$ mvn exec:exec

Then follow instructions on the console to generate load.

org.cometd.java

CometD - Server Push for the Web

Versions

Version
4.0.9
4.0.8
4.0.7
4.0.6
4.0.5
4.0.4
4.0.3