[JGN] Can i register multiple message classes to one client/server?

same as the topic.



i want to register several different message classes to one client and server protocol.



can i do that? :?

Absolutely.  Simply call:


JGN.register(MyMessage1.class);
JGN.register(MyMessage2.class);



Do that for all your custom messages before you establish any connections (must be done for all clients and servers).  This tells JGN that when a connection is established it needs to include these message types in the negotiation process.

great~ thx alot :smiley: