anchor.diff:                                   vsn       = WSVersion,
                                    frag_type = none},
               handshake(CliSock, WSKey, Protocol),
  +            websocket_setopts(WSState, [{active, once}]),
   
               case CbInfo#cbinfo.open_fun of
                   undefined ->
  
positive.code:     CliSock = Arg#arg.clisock,
      Res = case yaws_api:get_sslsocket(CliSock) of
                {ok, SslSocket} ->
                    ssl:setopts(SslSocket, [{packet, raw}, {active, once}]),
                    ssl:controlling_process(SslSocket, OwnerPid);
                undefined ->
                    inet:setopts(CliSock, [{packet, raw}, {active, once}]),
                    gen_tcp:controlling_process(CliSock, OwnerPid)
            end,
      case Res of
  
negative.code: handle_info({tcp, Socket, FirstPacket},
              #state{wsstate=#ws_state{sock=Socket}}=State) ->
      handle_frames(FirstPacket, State);
  handle_info({ssl, Socket, FirstPacket},
              #state{wsstate=#ws_state{sock={ssl, Socket}}}=State) ->
      handle_frames(FirstPacket, State);
  