<?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>FreeMASTERのトピックRe: JSON-RPC does not work in multiple FreeMASTER instances</title>
    <link>https://community.nxp.com/t5/FreeMASTER/JSON-RPC-does-not-work-in-multiple-FreeMASTER-instances/m-p/1354655#M762</link>
    <description>&lt;P&gt;Hello Jaroslav,&lt;/P&gt;
&lt;P&gt;indeed, use of the /rpcs command-line option is the only way how to run multiple FreeMASTER instances each with it own JSON-RPC server. And a client script or HTML application which connects to the server needs to know the port.&amp;nbsp;&lt;SPAN style="font-family: inherit;"&gt;We realize this is not very convenient use case. This is why plan the following change in the upcoming update 3.1.3:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;If started without the /rpcs option, the JSON-RPC server will automatically probe and pick a different port in range of 41001..41015 in case the default 41000 is already used. This will enable up to 16 instances to run and have their JSON-RPC servers started.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;The HTML/JScript applications running inside the Chromium component embedded in the FreeMASTER main window will be able to determine the correct port. The way to achieve it is to include a "virtual" &amp;lt;script&amp;gt; file with a special URL: fmstr://localapp/info.js. This file will be supplied on-fly by the parent FreeMASTER application and will define an object with information needed to establish a JSON-RPC connection.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;Please refer to "What's new" section and a User Guide of the FreeMASTER 3.1.3 when it is released by end of this month.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;Thanks,&lt;BR /&gt;Michal&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 13 Oct 2021 06:02:13 GMT</pubDate>
    <dc:creator>MichalH</dc:creator>
    <dc:date>2021-10-13T06:02:13Z</dc:date>
    <item>
      <title>JSON-RPC does not work in multiple FreeMASTER instances</title>
      <link>https://community.nxp.com/t5/FreeMASTER/JSON-RPC-does-not-work-in-multiple-FreeMASTER-instances/m-p/1354404#M761</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Hello,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;when using multiple FreeMASTER instances, only the first one is reachable using JSON-RPC. The web pages and JScript running in other instances are accessing the first running instance, similarly as other pages running standalone in a browser. I know there is a /rpcs command line option to change the JSON-RPC port, but there is no way for the HTML application to find out the port of “its” FreeMASTER instance. Or is it possible?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thanks,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;JP&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Oct 2021 19:11:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/FreeMASTER/JSON-RPC-does-not-work-in-multiple-FreeMASTER-instances/m-p/1354404#M761</guid>
      <dc:creator>JaroslavP</dc:creator>
      <dc:date>2021-10-12T19:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: JSON-RPC does not work in multiple FreeMASTER instances</title>
      <link>https://community.nxp.com/t5/FreeMASTER/JSON-RPC-does-not-work-in-multiple-FreeMASTER-instances/m-p/1354655#M762</link>
      <description>&lt;P&gt;Hello Jaroslav,&lt;/P&gt;
&lt;P&gt;indeed, use of the /rpcs command-line option is the only way how to run multiple FreeMASTER instances each with it own JSON-RPC server. And a client script or HTML application which connects to the server needs to know the port.&amp;nbsp;&lt;SPAN style="font-family: inherit;"&gt;We realize this is not very convenient use case. This is why plan the following change in the upcoming update 3.1.3:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;If started without the /rpcs option, the JSON-RPC server will automatically probe and pick a different port in range of 41001..41015 in case the default 41000 is already used. This will enable up to 16 instances to run and have their JSON-RPC servers started.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;The HTML/JScript applications running inside the Chromium component embedded in the FreeMASTER main window will be able to determine the correct port. The way to achieve it is to include a "virtual" &amp;lt;script&amp;gt; file with a special URL: fmstr://localapp/info.js. This file will be supplied on-fly by the parent FreeMASTER application and will define an object with information needed to establish a JSON-RPC connection.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;Please refer to "What's new" section and a User Guide of the FreeMASTER 3.1.3 when it is released by end of this month.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;Thanks,&lt;BR /&gt;Michal&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Oct 2021 06:02:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/FreeMASTER/JSON-RPC-does-not-work-in-multiple-FreeMASTER-instances/m-p/1354655#M762</guid>
      <dc:creator>MichalH</dc:creator>
      <dc:date>2021-10-13T06:02:13Z</dc:date>
    </item>
  </channel>
</rss>

