sets or overrides the given list of protocols for the Socket and returns a new instance of Socket.
new Socket
list of protocols