<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('vtk:methodName', 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"><<a href="mailto:akyrieleis@gmail.com" target="_blank">akyrieleis@gmail.com</a>></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("Connection failed.");<br>
var conn = {<br>
sessionURL: "ws://" + location.hostname + ":" +<br>
location.port + "/ws"<br>
};<br>
setupConnection(conn);<br>
}<br>
);<br>
<br>
function setupConnection(connection) {<br>
if(location.protocol == "http:") {<br>
connection.sessionURL =<br>
connection.sessionURL.replace("wss:","ws:");<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("#viewport");<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>