Add socket.io options

Add socket.io options to be used when creating the socket.io instance.
Added an example where we need to use the socket.io authentication mechanism.