       console.log(conn)
       conn.onopen = () ->
           update_ui()
+          choice_conn()
 
       conn.onmessage = (e) ->
           log(e.data); # Received


  log = (json_msg) ->
      msg = JSON.parse(json_msg)
      if msg.conn
          console.log(msg.conn)
          # <li><a href="#">Conn1</a></li>

  console.log('load websocket')
  conn = null

  # setup drop menu
  do add_li_in_drop_list = () ->
      jQuery('<li/>').appendTo('#connections>ul')
      jQuery('<a/>', {href: "#", text: "None"}).appendTo('#connections>ul>:last-child')
