Installing

Via Gradle

When using gradle, add this to your build.gradle file:

compile 'io.deepstream:deepstream.io-client-java:'

Via Maven

When using maven, add this to your pom.xml file:

<dependency>
    <groupId>io.deepstream</groupId>
    <artifactId>deepstream.io-client-java</artifactId>
    <version></version>
    <type>pom</type>
</dependency>

Via Ivy

<dependency org='io.deepstream' name='deepstream.io-client-java' rev=''>
  <artifact name='$AID' ext='pom'></artifact>
</dependency>

Via Bintray

Visit the package on Bintray for details on release versions and dates

Usage

You can setup a deepstream project as easily as:

Adding the dependency to your project:

repositories {
    jcenter()
}

dependencies {
    compile 'io.deepstream:deepstream.io-client-java:0.8'
}

And requiring it within your application:

import io.deepstream.DeepstreamClient;
import java.net.URISyntaxException;

public class Application {

    public static void main(String[] args) throws URISyntaxException {
        DeepstreamClient ds = new DeepstreamClient( "localhost:6021" );
        ds.login();
        ds.event.emit( "app", "My first ever event!" );
    }
}

For a deeper look into the Java package, take a look at our quick start tutorial.

Need support, architectural consulting or training? Buy Support