<?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 Re: Stream Layer with Web Socket Authentication in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/stream-layer-with-web-socket-authentication/m-p/1604370#M86864</link>
    <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;You should be able to use &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html#customParameters" target="_self"&gt;StreamLayer.customParameters&lt;/A&gt; to add additional params like token.&lt;/P&gt;</description>
    <pubDate>Wed, 09 Apr 2025 20:06:26 GMT</pubDate>
    <dc:creator>UndralBatsukh</dc:creator>
    <dc:date>2025-04-09T20:06:26Z</dc:date>
    <item>
      <title>Stream Layer with Web Socket Authentication</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/stream-layer-with-web-socket-authentication/m-p/1604184#M86857</link>
      <description>&lt;P&gt;Good Day&lt;BR /&gt;&lt;BR /&gt;I have a Stream Layer that works, is there a way to add a Bearer token in the header of the Web Socket when the Stream Layer connects, if so, how?&lt;BR /&gt;&lt;BR /&gt;Here is my current Stream Layer object:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;        const websocket = 'ws://blah'

        return new StreamLayer({
            fields: metaLayer ? this._metaFields : fields,
            geometryType: geometry,
            id: streamLayerId,
            labelingInfo: [layerLabelClass],
            maxReconnectionAttempts: 100,
            maxReconnectionInterval: 10,
            objectIdField: 'objectId',
            renderer: renderSetting,
            timeInfo: {
                trackIdField: "assetSectionId"
            },
            webSocketUrl: `${websocket}`,
            updateInterval: 100
        })&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 09 Apr 2025 14:09:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/stream-layer-with-web-socket-authentication/m-p/1604184#M86857</guid>
      <dc:creator>AndrewMurdoch1</dc:creator>
      <dc:date>2025-04-09T14:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: Stream Layer with Web Socket Authentication</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/stream-layer-with-web-socket-authentication/m-p/1604370#M86864</link>
      <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;You should be able to use &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html#customParameters" target="_self"&gt;StreamLayer.customParameters&lt;/A&gt; to add additional params like token.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Apr 2025 20:06:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/stream-layer-with-web-socket-authentication/m-p/1604370#M86864</guid>
      <dc:creator>UndralBatsukh</dc:creator>
      <dc:date>2025-04-09T20:06:26Z</dc:date>
    </item>
  </channel>
</rss>

