Socket.io with Three.js Sphere (OrbitControls)
<p>I'm working on something right now and I can't make it work. I have a <a href="https://threejs.org/" rel="nofollow noreferrer">three.js</a> sphere ("<em>HTML1</em>" on Desktop) with controls(<code>THREE.OrbitControls</code>). </p>

<p>Which is working good on both computer and tablet. What I want to do is to control that sphere through my iPad, so I loaded a blank scene on an HTML file ("<em>HTML2</em>") running on my iPad. That blank <em>three.js</em> sphere also has the control function, which I want to send to the server (<a href="https://socket.io/" rel="nofollow noreferrer">socket.io</a>) which is supposed to send them to the Desktop Sphere ("<em>HTML1</em>"). </p>

<p>My server: The server is getting from the Tablet, but not sending (or the Desktop not receiving)</p>

<pre><code>io.on('connection', function(socket){
socket.on('cameraControls', function(controls){
        socket.emit('sendControls', function(controls) {
        console.log('Controls');
        });
    });
  console.log('a user connected');
});
</code></pre>

<p>What the ipad ("<em>HTML2</em>") sends (loaded in function render):</p>

<pre><code>socket.emit('cameraControls', function(controls){});
</code></pre>

<p>What the Desktop Sphere receives (also loaded in function render):</p>

<pre><code>socket.on('sendControls', function(controls){
         //this.controls = controls;
         console.log("got EVENT");
});
</code></pre>

<p>Any ideas? It's my first time working with <code>socket.io</code>. There are no errors in the Terminal or the Console Log, so I'm not sure what I'm doing wrong.</p>