Scala API wrapper using Kryonet java lib.