Customizing Operator Advisor > ThingView Widget > Configuring Your ThingWorx Server to Work with the ThingView Widget
Configuring Your ThingWorx Server to Work with the ThingView Widget
The ThingView widget uses WebAssembly technology to render the 3D graphics. The browser downloads the ThingView WebAssembly file, when you view the 3D data in the browser. To optimize the downloading and initialization of the WebAssembly file in the browser, configure the server for the WebAssembly MIME type.
To configure the Apache Tomcat server, edit the web.xml and server.xml files.
1. Open the <Apache_Tomcat_Installation>/conf/web.xml file for editing. Ensure that the file contains the following code:
<mime-mapping>
<extension>wasm</extension>
<mime-type>application/wasm</mime-type>
</mime-mapping>
2. Open the <Apache_Tomcat_Installation>/conf/server.xml file for editing. Ensure that the compressableMimeType attribute contains the application/wasm MIME type as shown in the following example:
<Connector port="8080" protocol="org.apache.coyote.http11.Http11NioProtocol"
connectionTimeout="20000"
redirectPort="8445"
compression="on"
compressionMinSize="1024"
compressableMimeType="application/wasm,text/html,text/xml,text/plain,text/css,text/javascript,application/javascript"/>
Was this helpful?