anchor.diff:  make_response(FromPid, Xnest, {Type, Msg}) ->
   	Time = time2binary(erlang:localtime()),
   	From = pid2binary(FromPid),
  +lager:debug("~p", [Msg]),
   	Frame = [ {<<"from">>, From}
   		,{<<"xnest">>, Xnest}
   		,{<<"type">>, Type}
   		,{<<"payload">>, Msg}
   		,{<<"send_time">>, Time}
   	],
  +lager:debug("~p", [Frame]),
  +lager:debug("~p", [FromPid]),
  +lager:debug("~p", [self()]),
   	Response = jsx:encode(Frame),
   	Response.
   
  
positive.code: 	Req3 = cowboy_req:set_resp_header(<<"access-control-allow-origin">>, <<"*">>, Req2),
  	self() ! {'member_count'},		%% send a command to self 
  	self() ! {'members'},		%% send a command to self 
  	{ok, Req3, State}.
  
  
  
negative.code: 	{ok, Count} = xnest:status(XNestPid, client_counts),
  	ResponseMsg = make_response(self(), State#state.xnest_name, {'member_count', Count}),
  	{reply, {text, ResponseMsg}, Req, State};
  
  
  %% @private
  %% @doc Receive history command from self 
  websocket_info({'history'}, Req, State) ->
  	XNestPid = State#state.xnest_pid,
  	{ok, History} = xnest:history(XNestPid, 10),
  	ResponseMsg = make_response(self(), State#state.xnest_name, {'history', History}),
  	{reply, {text, ResponseMsg}, Req, State};
  
  
  
  
  %% @private
  %% @doc Receive Message from xnest and send it to client
  