got the basic socket working for sending messages back and forth