The client and server class for chattbox