Stomp websocket代理,用于Stomp.js安装
npm install stompjs-proxy
用法:
var stompProxy = require('stompjs-proxy');
`stompProxy({
cluster: { size: 4, repl: false },
listen: { host: '127.0.0.1', port: 3000, path: '/stomp' },
upstream: { host: '127.0.0.1', port: 61613 },
auth: { 'id': 'key' }
});`
暂无评论