rosbridge how to subscribe from multi rostopic
I know that use such function I can use msg subscribe from the topic called /sensorPacket:
connection.callService('/rosjs/subscribe','["/sensorPacket",0]',function(rsp) { alert('subscribed to /sensorPacket'); });
But I want information from 2 topics, for example /a and /b . How can I realize? can I just use in such way:
connection.callService('/rosjs/subscribe','["/a,/b",0]',function(rsp) { alert('subscribed to /sensorPacket'); });