connect with server

connect to a server running socket.io (currently having issues when
server is not running..)