anchor.diff:      case Path of
   	<<"/_hostname">> -> ok_txt(p6str:mkbin(get_hostname(Req)),Req,Cfg);
   	<<"/_p6init.js">> -> ok_js([<<"var _p6MMDVars = ">>,mk_init(Cfg,Req)],Req,Cfg);
  -        <<"/wsurl">> -> ok_txt(get_wsurl(Cfg),Req,Cfg);
  +        <<"/wsurl">> -> ok_txt(get_wsurl(Req,Cfg),Req,Cfg);
           <<"/wsurl.js">> -> ok_js([<<"var p6MMDVars = ">>,mk_init(Cfg,Req)],Req,Cfg);
           _ -> handle_fs(Req,Cfg)
       end.
  
positive.code:     end.
  
  
  get_wsurl(#htcfg{port=Port}) ->
      Host = case application:get_env(websocket_hostname) of
  	       undefined ->
  		   {ok, H} = inet:gethostname(),
  		   H;
  	       {ok, H} ->
  		   H
  	   end,
      io_lib:format("ws://~s:~p/_ws",[Host,Port]).
  
  
  
negative.code: 
  mk_init(Cfg=#htcfg{root=Root},Req) ->
      [
       <<"{\n \"websocketURL\": \"">>,get_wsurl(Req,Cfg),
       <<"\",\n \"client\": \"">>,p6str:mkbin(get_hostname(Req)),
       <<"\",\n \"environment\": \"">>,p6str:mkbin(p6init:getEnv()),
       <<"\",\n \"components\": {">>, gen_components(Cfg),
  