<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Socket.io is crashing the page as the applyEdits() method calls to get data in near real-time in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/socket-io-is-crashing-the-page-as-the-applyedits/m-p/1258355#M80257</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;As I stated in my subject, I want to use socket.io to get real-time alerts from ONT devices. Everything is going good, I am receiving real-time alerts on server side and also get those alerts on my web page. But, I have a confusion, as is apply &lt;FONT size="3"&gt;&lt;STRONG&gt;applyEdits()&lt;/STRONG&gt; &lt;/FONT&gt;method on my GEOJSON layer to remove and add the points within real-time (or as the alert receive)&amp;nbsp; then my web page crashed.&lt;/P&gt;&lt;P&gt;I hope community members are understanding my point. For the better understanding, I attached the code as a zip file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please anyone from the community can help me to resolve this issue.?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt;&lt;/EM&gt; &lt;EM&gt;For front-end I am using react.js and esri-loader for mapping capabilities.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kawish&lt;/P&gt;</description>
    <pubDate>Wed, 15 Feb 2023 05:44:09 GMT</pubDate>
    <dc:creator>kawishabbas</dc:creator>
    <dc:date>2023-02-15T05:44:09Z</dc:date>
    <item>
      <title>Socket.io is crashing the page as the applyEdits() method calls to get data in near real-time</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/socket-io-is-crashing-the-page-as-the-applyedits/m-p/1258355#M80257</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;As I stated in my subject, I want to use socket.io to get real-time alerts from ONT devices. Everything is going good, I am receiving real-time alerts on server side and also get those alerts on my web page. But, I have a confusion, as is apply &lt;FONT size="3"&gt;&lt;STRONG&gt;applyEdits()&lt;/STRONG&gt; &lt;/FONT&gt;method on my GEOJSON layer to remove and add the points within real-time (or as the alert receive)&amp;nbsp; then my web page crashed.&lt;/P&gt;&lt;P&gt;I hope community members are understanding my point. For the better understanding, I attached the code as a zip file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please anyone from the community can help me to resolve this issue.?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt;&lt;/EM&gt; &lt;EM&gt;For front-end I am using react.js and esri-loader for mapping capabilities.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kawish&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2023 05:44:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/socket-io-is-crashing-the-page-as-the-applyedits/m-p/1258355#M80257</guid>
      <dc:creator>kawishabbas</dc:creator>
      <dc:date>2023-02-15T05:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: Socket.io is crashing the page as the applyEdits() method calls to get data in near real-time</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/socket-io-is-crashing-the-page-as-the-applyedits/m-p/1258554#M80273</link>
      <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;ApplyEdits is not meant to be used for near realtime updates. Although, the app could be crashing for other reasons. I can't be sure.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;In any case, have you tried using StreamLayer for your use case? &amp;nbsp;The stream layer can consume a &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html#webSocketUrl" target="_self"&gt;service from a custom web socket&lt;/A&gt;. Seems like this option could work for you.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;At 4.26, we are also introducing client-side StreamLayer where you can stream features to the layer on the client-side. You can test this new capability using our next version and you can find more info &lt;A href="https://github.com/Esri/feedback-js-api-next/blob/main/CHANGELOG.md" target="_self"&gt;here&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2023 17:02:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/socket-io-is-crashing-the-page-as-the-applyedits/m-p/1258554#M80273</guid>
      <dc:creator>UndralBatsukh</dc:creator>
      <dc:date>2023-02-15T17:02:36Z</dc:date>
    </item>
  </channel>
</rss>

