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);
}
Aggregations