Add examples for sockets and authentication.
Integrated sockets example.