setProtocols method
Either a single protocol string or an array of protocol strings. These strings are used to indicate sub-protocols, so that a single server can implement multiple WebSocket sub-protocols
Implementation
OptionBuilder setProtocols(List<String> protocols) {
_opts['protocols'] = protocols;
return this;
}