<p dir="auto">The websocket functionality from std/ws is awesome. However, when writing code that targets deno and browser, it doesn't fare as well. Wondering if RT should provide a browser compatible version that can be wrapped by std/ws or vice versa.</p>
<p dir="auto">This would allow us to have it both ways, and I for one am sold on it.</p>
<p dir="auto">Is this an intended behavior? I expected these properties to be filled with the actual file name and path.</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ deno run --allow-read http://danoweb.site/stat_test.ts test.txt
Downloading http://danoweb.site/stat_test.ts
Compiling http://danoweb.site/stat_test.ts
stat null null
lstat null null"><pre class="notranslate">$ deno run --allow-read http://danoweb.site/stat_test.ts test.txt
Downloading http://danoweb.site/stat_test.ts
Compiling http://danoweb.site/stat_test.ts
stat null null
lstat null null</pre></div>
<p dir="auto">stat_test.ts looks like this:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="try {
  const stat = Deno.statSync(Deno.args[1]);
  console.log(&quot;stat&quot;, stat.name, stat.path);
  const lstat = Deno.lstatSync(Deno.args[1]);
  console.log(&quot;lstat&quot;, lstat.name, lstat.path);
} catch (e) {
  console.error(&quot;specified file not found&quot;);
}"><pre class="notranslate"><span class="pl-k">try</span> <span class="pl-kos">{</span>
  <span class="pl-k">const</span> <span class="pl-s1">stat</span> <span class="pl-c1">=</span> <span class="pl-smi">Deno</span><span class="pl-kos">.</span><span class="pl-en">statSync</span><span class="pl-kos">(</span><span class="pl-smi">Deno</span><span class="pl-kos">.</span><span class="pl-c1">args</span><span class="pl-kos">[</span><span class="pl-c1">1</span><span class="pl-kos">]</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
  <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">"stat"</span><span class="pl-kos">,</span> <span class="pl-s1">stat</span><span class="pl-kos">.</span><span class="pl-c1">name</span><span class="pl-kos">,</span> <span class="pl-s1">stat</span><span class="pl-kos">.</span><span class="pl-c1">path</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
  <span class="pl-k">const</span> <span class="pl-s1">lstat</span> <span class="pl-c1">=</span> <span class="pl-smi">Deno</span><span class="pl-kos">.</span><span class="pl-en">lstatSync</span><span class="pl-kos">(</span><span class="pl-smi">Deno</span><span class="pl-kos">.</span><span class="pl-c1">args</span><span class="pl-kos">[</span><span class="pl-c1">1</span><span class="pl-kos">]</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
  <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">"lstat"</span><span class="pl-kos">,</span> <span class="pl-s1">lstat</span><span class="pl-kos">.</span><span class="pl-c1">name</span><span class="pl-kos">,</span> <span class="pl-s1">lstat</span><span class="pl-kos">.</span><span class="pl-c1">path</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span> <span class="pl-k">catch</span> <span class="pl-kos">(</span><span class="pl-s1">e</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
  <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">error</span><span class="pl-kos">(</span><span class="pl-s">"specified file not found"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">test code is also available at: <a href="https://danoweb.site/stat_test.ts?mode=edit" rel="nofollow">https://danoweb.site/stat_test.ts?mode=edit</a></p>