change chatserver to extend from serveradapter
to not have to implement dataWrite function