Search in sources :

Example 1 with ReflectionServices

use of io.crossbar.autobahn.wamp.reflectionRoles.ReflectionServices in project autobahn-java by crossbario.

the class Session method onConnect.

@Override
public void onConnect(ITransport transport, ISerializer serializer) throws Exception {
    LOGGER.d("onConnect()");
    if (mTransport != null) {
        throw new Exception("already connected");
    }
    mTransport = transport;
    mSerializer = serializer;
    mReflectionServices = new ReflectionServices(this, mSerializer);
    runAsync(() -> {
        for (OnConnectListener listener : mOnConnectListeners) {
            listener.onConnect(this);
        }
    }, mExecutor);
}
Also used : ReflectionServices(io.crossbar.autobahn.wamp.reflectionRoles.ReflectionServices) CompletionException(java.util.concurrent.CompletionException) WampException(io.crossbar.autobahn.wamp.reflectionRoles.WampException)

Aggregations

ReflectionServices (io.crossbar.autobahn.wamp.reflectionRoles.ReflectionServices)1 WampException (io.crossbar.autobahn.wamp.reflectionRoles.WampException)1 CompletionException (java.util.concurrent.CompletionException)1