package com.github.noxan.aves.demo.chat;

import java.io.IOException;

import com.github.noxan.aves.client.ClientAdapter;
import com.github.noxan.aves.client.SocketClient;

public class ChatClient extends ClientAdapter {
    public static void main(String[] args) {
        SocketClient client = new SocketClient(new ChatClient());
        try {
            client.connect();
        } catch(IOException e) {
            e.printStackTrace();
        }
    }
}

@@ -64,16 +64,60 @@
 ption;%0A%0A
+import com.github.noxan.aves.client.Client;%0A
 import c
@@ -159,16 +159,16 @@
 dapter;%0A
-
 import c
@@ -258,16 +258,50 @@
 apter %7B%0A
+    private SocketClient client;%0A%0A
     publ
@@ -345,28 +345,74 @@
         
-SocketClient
+new ChatClient();%0A    %7D%0A%0A    public ChatClient() %7B%0A       
  client 
@@ -430,32 +430,20 @@
 tClient(
-new ChatClient()
+this
 );%0A     

change client initialisation to wrap a socket client