Search code examples
javanetwork-programmingkryonet

How do I send user information over KryoNet?


I've created a gameserver containing an ArrayList of players (Player). However, as far as i've been able to read, Kryonet can't send objects with a constructor in it to the client (Player have that), so i need to find an alternate way of transferring the ArrayList.

What would be a proper way to accomplish this?


Solution

  • You could use JMS implementation (in my case it ActiveMq) and send a Object message.