Adds basic example of socket connecting