<div dir="ltr">You need to create a new protocol on the server side to register some new RPC that can then be called on the client by doing.<div><br></div><div>session.call(&#39;vtk:methodName&#39;, arg1, arg2, ...).then(function(response) {</div>
<div>});</div><div><br></div><div>For the server side you can look at the file src/Web/Python/protocol.py and then their usage inside src/Web/Application/XXX/server/pv_web_*.py</div><div><br></div><div>Seb</div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Mon, Nov 11, 2013 at 8:57 AM, kyr <span dir="ltr">&lt;<a href="mailto:akyrieleis@gmail.com" target="_blank">akyrieleis@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
I am using paraviewweb (nightly build 2.3.6) with the<br>
JettySessionManager-Server.<br>
<br>
In Javascript an object used to be created e.g. by<br>
<br>
var cone = paraview.Cone();<br>
<br>
How to do that now ??<br>
<br>
I start a new Paraview/Web instance using<br>
<br>
                vtkWeb.start(config,<br>
                      function (conn) {<br>
                          setupConnection(conn);<br>
                      },<br>
                      function (err) {<br>
                        //console.log(&quot;Connection failed.&quot;);<br>
                          var conn = {<br>
                            sessionURL: &quot;ws://&quot; + location.hostname + &quot;:&quot; +<br>
location.port + &quot;/ws&quot;<br>
                            };<br>
                      setupConnection(conn);<br>
                      }<br>
                   );<br>
<br>
function setupConnection(connection) {<br>
                    if(location.protocol == &quot;http:&quot;) {<br>
                        connection.sessionURL =<br>
connection.sessionURL.replace(&quot;wss:&quot;,&quot;ws:&quot;);<br>
                    }<br>
<br>
                    // connect to the ParaView/Web instance, so we can start<br>
                    // visualizing.<br>
                    vtkWeb.connect(connection,<br>
                    function(conn) {<br>
                        pv.connection = conn;<br>
                        pv.viewport =<br>
vtkWeb.createViewport({session:conn.session});<br>
                        pv.viewport.bind(&quot;#viewport&quot;);<br>
                    },<br>
                    function(code,reason){<br>
                        pv.connection = null;<br>
                        console.log(reason);<br>
                        cleanup();<br>
                    }<br>
                                   );<br>
}<br>
<br>
<br>
<br>
Many thanks<br>
<br>
k.<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://the-unofficial-paraview-developers-forum.34153.x6.nabble.com/paraview-web-4-pipeline-tp2618.html" target="_blank">http://the-unofficial-paraview-developers-forum.34153.x6.nabble.com/paraview-web-4-pipeline-tp2618.html</a><br>

Sent from the The Unofficial ParaView Developers Forum mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Paraview-developers mailing list<br>
<a href="mailto:Paraview-developers@paraview.org">Paraview-developers@paraview.org</a><br>
<a href="http://public.kitware.com/mailman/listinfo/paraview-developers" target="_blank">http://public.kitware.com/mailman/listinfo/paraview-developers</a><br>
</blockquote></div><br></div>