anchor.diff:              Pid ! {response, Error},
               {ok, State}
       end;
  -
  -websocket_info(perform_ping, _, State) ->
  -    {reply, ping, State};
   
   websocket_info(terminate, _, State) ->
       {close, <<"">>, State};
  
positive.code: }).
  
  -type state() :: #state{}.
  
  -type push_callback() :: fun((gs_protocol:push()) -> any()).
  % Reference to GS client instance
  
negative.code: -spec init([term()], websocket_req:req()) ->
      {ok, state()} | {ok, state(), Keepalive :: integer()}.
  init([], _) ->
      {ok, #state{}, ?KEEPALIVE_INTERVAL}.
  
  
  %%%===================================================================
  