<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Tsumuri</title>
    <description>The latest articles on DEV Community by Tsumuri (@tsumuri1017).</description>
    <link>https://dev.to/tsumuri1017</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F826119%2F7949c636-1b93-4f16-84ac-5a168f1e66c7.png</url>
      <title>DEV Community: Tsumuri</title>
      <link>https://dev.to/tsumuri1017</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/tsumuri1017"/>
    <language>en</language>
    <item>
      <title>I want to create authentication for WebSocket</title>
      <dc:creator>Tsumuri</dc:creator>
      <pubDate>Mon, 19 Sep 2022 05:32:10 +0000</pubDate>
      <link>https://dev.to/tsumuri1017/i-want-to-create-authentication-for-websocket-3b25</link>
      <guid>https://dev.to/tsumuri1017/i-want-to-create-authentication-for-websocket-3b25</guid>
      <description>&lt;p&gt;WebSockets are occasionally accessed illegally.&lt;br&gt;
I want to prevent that.&lt;br&gt;
I'm thinking of an authentication method.&lt;br&gt;
Please let me know if there is a better way.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Push.js's Help</title>
      <dc:creator>Tsumuri</dc:creator>
      <pubDate>Sat, 02 Jul 2022 01:59:21 +0000</pubDate>
      <link>https://dev.to/tsumuri1017/pushjss-help-3a2c</link>
      <guid>https://dev.to/tsumuri1017/pushjss-help-3a2c</guid>
      <description>&lt;p&gt;Using Push.js of the web js library,&lt;br&gt;
When notifying many times,&lt;br&gt;
I want to automatically turn off the notification when the next notification comes.&lt;br&gt;
Is there a way?&lt;/p&gt;

&lt;p&gt;I would like to know how to specify other than the number of milli seconds.&lt;/p&gt;

&lt;p&gt;Please help...&lt;/p&gt;

&lt;p&gt;I'm going to use it for chat notifications when another tab is open.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Why doesn't Cloudflare work?</title>
      <dc:creator>Tsumuri</dc:creator>
      <pubDate>Tue, 21 Jun 2022 07:29:44 +0000</pubDate>
      <link>https://dev.to/tsumuri1017/why-doesnt-cloudflare-work-4o4g</link>
      <guid>https://dev.to/tsumuri1017/why-doesnt-cloudflare-work-4o4g</guid>
      <description>&lt;p&gt;Is it a DDos attack?&lt;br&gt;
How long should I wait?&lt;/p&gt;

</description>
    </item>
    <item>
      <title>I want to convert an HTML file in express...</title>
      <dc:creator>Tsumuri</dc:creator>
      <pubDate>Sun, 15 May 2022 01:10:49 +0000</pubDate>
      <link>https://dev.to/tsumuri1017/i-want-to-convert-an-html-file-in-express-2e9f</link>
      <guid>https://dev.to/tsumuri1017/i-want-to-convert-an-html-file-in-express-2e9f</guid>
      <description>&lt;p&gt;First of all, I want you to see there.&lt;/p&gt;

&lt;p&gt;index.js quote&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;webdata&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;fs&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;readFileSync&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;__dirname&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;/web/wiki.html&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;utf8&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;));&lt;/span&gt;
&lt;span class="nx"&gt;webdata&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nb"&gt;String&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;webdata&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="nx"&gt;webdata&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;webdata&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;replace&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;{tmp.data.name}&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nx"&gt;articlesname&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
 &lt;span class="nx"&gt;res&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;end&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;webdata&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;web/wiki.html&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="cp"&gt;&amp;lt;!DOCTYPE HTML&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;html&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;head&amp;gt;&lt;/span&gt;
...
&lt;span class="nt"&gt;&amp;lt;/head&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;body&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;h2&amp;gt;&lt;/span&gt;${tmp.data.name}&lt;span class="nt"&gt;&amp;lt;/h2&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;hr&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;br&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;id=&lt;/span&gt;&lt;span class="s"&gt;"article"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
          ：
          ：
    &lt;span class="nt"&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Next, I will explain what I want to do.&lt;/p&gt;

&lt;p&gt;I want to use replace to read the string "$ {tmp.data.name}" in HTML and use Node.js Express to make it the content of a variable.&lt;/p&gt;

&lt;p&gt;However,&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;webdata&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nb"&gt;String&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;webdata&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="nx"&gt;webdata&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;webdata&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;replace&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;{tmp.data.name}&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nx"&gt;articlesname&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;does not work.&lt;br&gt;
Variables are defined.&lt;br&gt;
Also, I couldn't try it with a string instead of a variable.&lt;br&gt;
Please help me...&lt;/p&gt;

</description>
    </item>
    <item>
      <title>The project you created with replit is taking a long time to respond. Is this just me?</title>
      <dc:creator>Tsumuri</dc:creator>
      <pubDate>Sun, 27 Mar 2022 11:12:34 +0000</pubDate>
      <link>https://dev.to/tsumuri1017/the-project-you-created-with-replit-is-taking-a-long-time-to-respond-is-this-just-me-4hd6</link>
      <guid>https://dev.to/tsumuri1017/the-project-you-created-with-replit-is-taking-a-long-time-to-respond-is-this-just-me-4hd6</guid>
      <description>&lt;p&gt;The response time of the website published&lt;br&gt;
by replit is taking too long.&lt;br&gt;
Is this a temporary issue?&lt;br&gt;
Or is there a solution?&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Workaround of [object Object]</title>
      <dc:creator>Tsumuri</dc:creator>
      <pubDate>Sat, 26 Mar 2022 23:01:49 +0000</pubDate>
      <link>https://dev.to/tsumuri1017/workaround-of-object-object-1mhn</link>
      <guid>https://dev.to/tsumuri1017/workaround-of-object-object-1mhn</guid>
      <description>&lt;p&gt;When JavaScript handles an object such as json andthe result is output,&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;[object Object]&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;maybe displayed.&lt;br&gt;
This is because we are trying to output the data in object format as it is.&lt;br&gt;
This can be solved by converting the number to a string.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;//json_object =&amp;gt; [object Object] Error Workaround&lt;/span&gt;
&lt;span class="nx"&gt;JSON&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;stringify&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;json_object&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;and solve it.&lt;br&gt;
I look forward to helping you.&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
