crossbar.io python应用程序组件,未知属性';过程';在顶级配置中

crossbar.io python应用程序组件,未知属性';过程';在顶级配置中,python,crossbar,Python,Crossbar,我正在用Autobahn/Python尝试/学习crossbar.io。我可以创建一些小组件来编写一个文件,运行shell命令,现在我就跟着做。 我在.crossbar/config.json中有路由器和应用程序会话中的config示例 不幸的是,我明白了: [root@devtest write_file]# /opt/pypy/buildout/venv/bin/crossbar check Checking local configuration file /opt/crossbar/wr

我正在用Autobahn/Python尝试/学习
crossbar.io
。我可以创建一些小组件来编写一个文件,运行shell命令,现在我就跟着做。 我在
.crossbar/config.json
中有
路由器和应用程序会话中的
config
示例

不幸的是,我明白了:

[root@devtest write_file]# /opt/pypy/buildout/venv/bin/crossbar check
Checking local configuration file /opt/crossbar/write_file/.crossbar/config.json

Error: encountered unknown attribute 'processes' in top-level configuration
我不知道如何将示例
config
与一些工作
config
结合起来

我将感谢任何帮助

谢谢。

深入研究Crossbar.io,我发现我不能简单地复制粘贴上述描述中的示例配置文件

经过一些尝试和错误,我现在有一个像样的路由器组件配置:
{
“控制器”:{
},  
“工人”:[
{   
“类型”:“路由器”,
“选择”:{
“蟒蛇”:[“.”
},  
“王国”:[
{   
“名称”:“realm1”,
“角色”:[
{   
“姓名”:“匿名”,
“权限”:[
{   
“uri”:“*”,
“发布”:没错,
“订阅”:对,
“呼叫”:正确,
“寄存器”:true
}   
]   
}   
]   
}   
],  
“运输”:[
{   
“类型”:“web”,
“端点”:{
“类型”:“tcp”,
“端口”:8080
},  
“路径”:{
"/": {
“类型”:“静态”,
目录“:”
},  
“ws”:{
“类型”:“websocket”
}   
}   
}   
],  
“组成部分”:[
{   
“类型”:“类”,
“领域”:“realm1”,
“classname”:“write\u file.write\u file.WriteFile”
}   
]   
}   
]   
}