Changed the way the server sends back to client.

Signed-off-by: bregell <johan_bregell@hotmail.com>