var RollingSpider = require('rolling-spider');
var client = RollingSpider.createClient();
client.connect(function () {
client.setup(function () {
client.takeOff();
}
});
socket.on('takeoff', () => {
drone.takeoff()
.then(function() {
socket.emit('didTakeoff');
});
});
Browser: yo make this drone takeoff
SocketIO: yo drone, takeoff!
Drone: I'm hovering, notify your boss
do you see it yet?
class App extends React.Component {
render() {
return (
<a href="" onClick="{this.takeoff}">
Take off
</a>
);
}
takeoff(e) {
e.preventDefault();
socket.emit('takeoff');
}
}
Wait to see what happened next.
This is a real picture. My drone was actually destroyed. Thanks JavaScript!
too soon?
Today is our first anniversary, and the last event as we know it.
You all deserve a round of applause. Specially you Katelyn!