Ahh, ok - so the relay you found would be pretty good for that (but you still need a nice way to drive it from Espruino), and SSRs wouldn't be useful.
For small battery powered devices, you might find a simple optocoupler works fine for you - like: http://uk.farnell.com/isocom/sfh615a-4x/optocoupler-dip-4-tr-o-p/dp/1683350
It's rated at 50mA....
The only 'gotcha' there is as it's not a switch, you're going to have to make sure that you connect + and - on the device the right way around.
@Gordon started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Ahh, ok - so the relay you found would be pretty good for that (but you still need a nice way to drive it from Espruino), and SSRs wouldn't be useful.
For small battery powered devices, you might find a simple optocoupler works fine for you - like: http://uk.farnell.com/isocom/sfh615a-4x/optocoupler-dip-4-tr-o-p/dp/1683350
It's rated at 50mA....
The only 'gotcha' there is as it's not a switch, you're going to have to make sure that you connect + and - on the device the right way around.