Add missing socket.io to Ros.js
Does the socket.io layer even work? I've asked the question before but I didn't get an answer: https://github.com/RobotWebTools/roslibjs/issues/322
@Rayman I am not sure it works. It isn't tested.
But at least I know io wasn't imported.
I believe the reason why this is left out is because socketio is non-essential and an optional integration whereas the other dependencies are critical to the function of roslib. Socketio is a relatively large library (60kb minified) larger than roslib is currently. So I would keep it as a peer dependency and not require it here.
I am totally fine by making it a peer dependency, but right now it is marked as a normal dependency.
Also right now io is just not available inside ros.js
Why wasn't this already merged?
socket.io is already in package.json
@francoissunatori see https://github.com/RobotWebTools/roslibjs/pull/429#issuecomment-825789600
The question remains if it works and whether it should be included in the compiled libs. If not included a user can always import it him/herself.