anchor.diff:    NewStateData = process_messages(Messages, State),
     {next_state, open, NewStateData};
   
  -handle_info({tcp, Socket, Data}, closing, StateData) ->
  +handle_info({tcp, _Socket, Data}, closing, StateData) ->
     [Message] = wsock_message:decode(Data, []),
     case Message#message.type of
       close ->
  
positive.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};
  
negative.code:   spawn(fun() -> (StateData#data.cb#callbacks.on_close)(undefined) end).
  
  %% @hidden
  code_change(_OldVsn, StateName, StateData, _Extra) ->
    {ok, StateName, StateData}.
  
  %%%%%%%%%%%%%%%%%%%%%
  