pub fn version(mut self, version: WebSocketVersion) -> Self {
		self.headers.insert(SEC_WEBSOCKET_VERSION, version.into());
		self.version_set = true;
		self
	}
/// Set the version of the Websocket connection.
/// Currently this library only supports version 13 (from RFC6455),
/// but one could use this library to create the handshake then use an
/// implementation of another websocket version.
Set the version of the Websocket connection.
Currently this library only supports version 13 (from RFC6455),
but one could use this library to create the handshake then use an
implementation of another websocket version.
Set the version of the Websocket connection . Currently this library only supports version 13 ( from RFC6455 ) but one could use this library to create the handshake then use an implementation of another websocket version .
pub fn version(mut self, version: WebSocketVersion) -> Self {
		self.headers.insert(SEC_WEBSOCKET_VERSION, version.into());
		self.version_set = true;
		self
	}
pub fn version ( mut self , version : WebSocketVersion ) -> Self { self . headers . insert ( SEC_WEBSOCKET_VERSION , version . into ( ) ) ; self . version_set = true ; self }
Set the version of the Websocket connection.
Set the version of the Websocket connection .
mut self
version
WebSocketVersion
mut self
version
WebSocketVersion