1. connecting to socket
2. need to listen and open windows and calculate width