How to embed a js library in Snap! ?

Hi everybody,
A colleague and I are doing some researches on the Thymio robot.
Our goal is to completely control the robot from Snap!.

It seems that the best way to communicate with our robot is the javascript library socket.io.

We have no idea about including this js library into Snap!. Can you help us and tell us how to proceed (or give a link with the way to do it) ?

Thank you.

Look at the procedure USE BIGNUMS in the bignum library (infinite precision integers, exact rationals, complex numbers). Nothing to do with your robot, but it loads a JS library into Snap!.

Thank you. We're going to try to do this.