var socket = socketCluster.connect({
port: 80,
//hostname: "xxx.xxx.xxx.xxx",
hostname: "xxx.xxx.xxx.xxx",
//path: '/private-cloud-service',
path: '/rssec/scservice',
secure: false
});
var sub1 = socket.subscribe(`${machId}-counters-system-cpu`);
sub1.watch(function(data) {
取到消息
});