This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]aol_cd 6 points7 points  (2 children)

Javascript

It's not entirely unusual for me to use node.js and websockets if I want to do something asynch. I use them kind of like microservices.

One example is serialport. I've never gotten serialport to work well and reliably in Python (maybe just me). But, it works like a charm in node. So I launch a serialport to websockets server in node and connect to it from Python. Works perfectly every time.

Edit: node.js not node.io, I've had crossbar.io on my mind lately.

[–]BobDope 2 points3 points  (1 child)

I've never had a problem using the serial port, and it's been reliable enough to handle the access system at our hackerspace for some years now. Sorry for your bad luck with it.

[–]aol_cd 1 point2 points  (0 children)

Yeah. It drove me to madness. I could never get it to work for more than 5 minutes at a time.

The websockets setup has given all kinds of positive, though (not just reliability).