anchor.diff:      ok ->
         gen_fsm:start_timer(?CLOSE_HANDSHAKE_TIMEOUT, waiting_close_reply),
         {reply, {ok, closing}, closing, StateData};
  -    {error, Reason} ->
  +    {error, _Reason} ->
         {stop, socket_error, {error, socket_error}, StateData }
     end.
   
   %% @hidden
   -spec handle_info({tcp, Socket::gen_tcp:socket(), Data::binary()}, connecting, #data{}) -> {next_state, atom(), #data{}}.
  -handle_info({tcp, Socket, Data}, connecting, StateData) ->
  +handle_info({tcp, _Socket, Data}, connecting, StateData) ->
     {ok, Response} = wsock_http:decode(Data, response),
     case wsock_handshake:handle_response(Response, StateData#data.handshake) of
       {ok, _Handshake} ->
  
positive.code:   spawn(fun() -> (StateData#data.cb#callbacks.on_close)(undefined) end).
  
  %% @hidden
  code_change(OldVsn, StateName, StateData, Extra) ->
    {ok, StateName, StateData}.
  
  %%%%%%%%%%%%%%%%%%%%%
  
negative.code:       {stop, failed_handshake, StateData}
    end;
  
  handle_info({tcp, _Socket, Data}, open, StateData) ->
    {Messages, State} = case StateData#data.fragmented_message of
      undefined ->
        {wsock_message:decode(Data, []), StateData};
  