add basic socket part to support chatting