protocols

fun protocols(vararg protocols: String): Socket

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

Return

new Socket

Parameters

protocols

list of protocols