Java Shell
rdegnan Fix multiple calls to dispose in FragmentationDuplexConnection, allow…
… fragmentation to be disabled until leaks are fixed
Latest commit 3e89238 Aug 2, 2018
Permalink
Failed to load latest commit information.
ci Bintray Publish Version (#494) May 9, 2018
gradle/wrapper Travis Updates (#482) Apr 2, 2018
rsocket-core Fix multiple calls to dispose in FragmentationDuplexConnection, allow… Aug 2, 2018
rsocket-examples Maven Dependency Improvements May 11, 2018
rsocket-load-balancer Maven Dependency Improvements May 11, 2018
rsocket-micrometer Maven Dependency Improvements May 11, 2018
rsocket-test Slow Test Run Configuration (#512) Jul 10, 2018
rsocket-transport-aeron Maven Dependency Improvements May 11, 2018
rsocket-transport-local Netty Transport Improvements (#507) May 25, 2018
rsocket-transport-netty Requester Channel: Cancel request on response termination (#517) Jul 14, 2018
.gitattributes add git attributes (#390) Sep 17, 2017
.gitignore Nullable (#288) May 21, 2017
.travis.yml Disable Java 9 Build (#483) Apr 3, 2018
AUTHORS Copyright Update (#474) Mar 17, 2018
CHANGES.md moving from reactivesocket to rsocket (#277) May 5, 2017
CONTRIBUTING.md Copyright Update (#474) Mar 17, 2018
LICENSE Project Structure Jul 8, 2015
NOTICE Copyright Update (#474) Mar 17, 2018
README.md Maven Dependency Improvements May 11, 2018
artifactory.gradle Maven Dependency Improvements May 11, 2018
bintray.gradle Upload to Bintray and Maven Central May 9, 2018
build.gradle Netty Transport Improvements (#507) May 25, 2018
gradle.properties Extract Project Version May 9, 2018
gradlew gradle 4.1 (#365) Aug 12, 2017
gradlew.bat gradle 4.1 (#365) Aug 12, 2017
settings.gradle Migration of Spectator to Micrometer (#486) Apr 9, 2018

README.md

RSocket

Join the chat at https://gitter.im/RSocket/reactivesocket-java

RSocket is a binary protocol for use on byte stream transports such as TCP, WebSockets, and Aeron.

It enables the following symmetric interaction models via async message passing over a single connection:

  • request/response (stream of 1)
  • request/stream (finite stream of many)
  • fire-and-forget (no response)
  • event subscription (infinite stream of many)

Learn more at http://rsocket.io

Build and Binaries

Build Status

Snapshots are available via JFrog.

Example:

repositories {
    maven { url 'https://oss.jfrog.org/libs-release' }
}

dependencies {
    implementation 'io.rsocket:reactivesocket:0.9.20'
}

No releases to Maven Central or JCenter have occurred yet.

Development

Install the google-java-format in Intellij, from Plugins preferences. Enable under Preferences -> Other Settings -> google-java-format Settings

Format automatically with

$./gradlew goJF

Debugging

Frames can be printed out to help debugging. Set the logger io.rsocket.FrameLogger to debug to print the frames.

Requirements

Trivial Client

package io.rsocket.transport.netty;

import io.rsocket.Payload;
import io.rsocket.RSocket;
import io.rsocket.RSocketFactory;
import io.rsocket.transport.netty.client.WebsocketClientTransport;
import io.rsocket.util.DefaultPayload;
import reactor.core.publisher.Flux;

import java.net.URI;

public class ExampleClient {
    public static void main(String[] args) {
        WebsocketClientTransport ws = WebsocketClientTransport.create(URI.create("ws://rsocket-demo.herokuapp.com/ws"));
        RSocket client = RSocketFactory.connect().keepAlive().transport(ws).start().block();

        try {
            Flux<Payload> s = client.requestStream(DefaultPayload.textPayload("peace"));

            s.take(10).doOnNext(p -> System.out.println(p.getDataUtf8())).blockLast();
        } finally {
            client.close().block();
        }
    }
}

Bugs and Feedback

For bugs, questions and discussions please use the Github Issues.

LICENSE

Copyright 2015-2018 the original author or authors.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.