websocket disconnect just after opening handshake
===

I would like to keep the websocket connection alive.<br/>
I am using RFC 6455 protocol as websocket protocol.<br/>
I tested this via Firefox 13 and Chrome 20.<br/>

===WEB SOCKET CLIENT===<br/>
GET / HTTP/1.1<br/>
Host: #.#.#.#:#<br/>
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:13.0) Gecko/20100101 Firefox/13.0.1<br/>
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8<br/>
Accept-Language: ko-kr,ko;q=0.8,en-us;q=0.5,en;q=0.3<br/>
Accept-Encoding: gzip, deflate<br/>
Connection: keep-alive, Upgrade<br/>
Sec-WebSocket-Version: 13<br/>
Origin: http://its.secret.com<br/>
Sec-WebSocket-Key: TbJqTlFtGocvRvk/9stMhg==<br/>
Pragma: no-cache<br/>
Cache-Control: no-cache<br/>
Upgrade: websocket<br/><br/>

===WEB SOCKET SERVER===<br/>
HTTP/1.1 101 WebSocket Protocol Handshake<br/>
Upgrade: websocket<br/>
Connection: Upgrade<br/>
Sec-WebSocket-Accept: outIACgIETcILj0NjzA0MhwP7uc=<br/><br/>

the newline in this websocket protocol is CR/LF.<br/>

the next is the part of websocket client source.<br/><br/>

var host = "ws://#.#.#.#:#";<br/>
  try{<br/>
		 Rsocket = new WebSocket(host);<br/>
		 Rsocket.onopen    = function(msg){ alert("Welcome - status "+this.readyState); };<br/>
                 Rsocket.onmessage = function(msg){...};<br/>
Rsocket.onclose   = function(msg){ alert("Disconnected - status "+this.readyState); };<br/>
	}<br/>
	  catch(ex){ log(ex); }<br/><br/>

First, the success alert appears in the web browser.<br/>
Just after pressing OK, the disconnect alert appears.<br/>

Although pressing OK when the success alert appears, I would like the disconnect alert not to appear.