{ "version": 2, "workers": [ { "type": "router", "realms": [ { "name": "realm1", "roles": [ { "name": "public", "permissions": [ { "uri": "", "match": "prefix", "allow": { "call": true, "register": true, "publish": true, "subscribe": true }, "disclose": { "caller": false, "publisher": false }, "cache": true } ] }, { "name": "user", "permissions": [ { "uri": "", "match": "prefix", "allow": { "call": true, "register": true, "publish": true, "subscribe": true }, "disclose": { "caller": false, "publisher": false }, "cache": true } ] } ] } ], "transports": [ { "type": "web", "endpoint": { "type": "tcp", "port": 8080 }, "paths": { "/": { "type": "static", "directory": "../web" }, "ws": { "type": "websocket", "auth": { "anonymous": { "type": "static", "role": "public" } } }, "call": { "type": "caller", "realm": "realm1", "role": "public", "options": { "debug": true } } } }, { "type": "rawsocket", "endpoint": { "type": "tcp", "port": 8000 }, "auth": { "anonymous": { "type": "static", "role": "public" }, "wampcra": { "type": "static", "users": { "homer": { "secret": "secret123", "role": "user" } } } } }, { "type": "rawsocket", "endpoint": { "type": "unix", "path": "/tmp/crossbar.sock" }, "auth": { "anonymous": { "type": "static", "role": "public" }, "wampcra": { "type": "static", "users": { "homer": { "secret": "secret123", "role": "user" } } } } } ] } ] }