Skip to content

Latest commit

 

History

History
43 lines (30 loc) · 951 Bytes

README.md

File metadata and controls

43 lines (30 loc) · 951 Bytes

Titan Java Client

Build Status

Titan client implementation for Java. Also works on Android. Depends on Neptulon Java client. Requirements and dependencies for Neptulon Java client is listed on its own repo.

Example

Client client = new ClientImp("ws://127.0.0.1:3000");
client.connect(new ConnCallback() { ... });
client.jwtAuth(JWT_TOKEN, new JwtAuthCallback() {
    @Override
    public void success() {
        System.out.println("JWT auth done");
    }

    @Override
    public void fail() {
        System.out.println("JWT auth failed");
    }
});

// now you can use `client.sendMessages(...)`

Building

./gradlew build

Testing

Start a Titan server at local address: 127.0.0.1:3001 and then:

./gradlew check

License

MIT