← Back to Upcase

Your opinions about websockets


(Guirec Corbel) #1

Hello,

I created an application where RasperryPis send a message to a server and the server send a notification to clients. The program on Raspberries are in Python, the server is in Ruby, with em-websockets, and the clients are in JavaScript, on a web browser. I want real time notifications.

All programs are talking to each others thought websockets.

I just want to know if websockets are safe and if their is not better solutions. Thanks for your opinion.

Thanks!


(Derek Prior) #2

Websockets often fail when there are proxies in the middle - for instance, hotel wifi or something similar. If its important that connectivity work all the time, then you’ll need a fallback like long polling. I don’t have much personal experience with Websockets myself, but Sam Saffron does and he spoke a bit about it on Episode 17 of The Bike Shed.