use of com.jme3.network.util.ObjectMessageDelegator in project jmonkeyengine by jMonkeyEngine.
the class RpcClientService method onInitialize.
/**
* Used internally to setup the RpcConnection and MessageDelegator.
*/
@Override
protected void onInitialize(ClientServiceManager serviceManager) {
Client client = serviceManager.getClient();
this.rpc = new RpcConnection(client);
delegator = new ObjectMessageDelegator(rpc, true);
client.addMessageListener(delegator, delegator.getMessageTypes());
}
Aggregations