EsotericSoftware / kryonet

TCP/UDP client/server library for Java, based on Kryo
BSD 3-Clause "New" or "Revised" License
1.82k stars 419 forks source link

Added error tracking to Connection #105

Closed maxidorius closed 9 years ago

maxidorius commented 9 years ago

Previously, there was no easy way to know in the code why a connection was closed since no information except a connection closed event was given.

This gives the last KryoNetException that occured in the update thread, useful for debugging protocol error like a class not found.