Skip to content

Instantly share code, notes, and snippets.

@oberstet
Created January 16, 2023 13:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oberstet/31c7e4f187678fed103e5ba79d4b4266 to your computer and use it in GitHub Desktop.
Save oberstet/31c7e4f187678fed103e5ba79d4b4266 to your computer and use it in GitHub Desktop.
(cpy311_1) (base) oberstet@intel-nuci7:~/scm/crossbario/autobahn-js$ AUTOBAHN_DEBUG=1 make test_pubsub_basic
cd packages/autobahn && nodeunit test/test_pubsub_basic.js
test_pubsub_basic.js
[
"TX",
"realm1",
null,
[
1,
"realm1",
{
"roles": {
"caller": {
"features": {
"caller_identification": true,
"call_canceling": true,
"progressive_call_results": true
}
},
"callee": {
"features": {
"caller_identification": true,
"pattern_based_registration": true,
"shared_registration": true,
"progressive_call_results": true,
"registration_revocation": true
}
},
"publisher": {
"features": {
"publisher_identification": true,
"subscriber_blackwhite_listing": true,
"publisher_exclusion": true
}
},
"subscriber": {
"features": {
"publisher_identification": true,
"pattern_based_subscription": true,
"subscription_revocation": true
}
}
}
}
]
]
[
"TX",
"realm1",
null,
[
1,
"realm1",
{
"roles": {
"caller": {
"features": {
"caller_identification": true,
"call_canceling": true,
"progressive_call_results": true
}
},
"callee": {
"features": {
"caller_identification": true,
"pattern_based_registration": true,
"shared_registration": true,
"progressive_call_results": true,
"registration_revocation": true
}
},
"publisher": {
"features": {
"publisher_identification": true,
"subscriber_blackwhite_listing": true,
"publisher_exclusion": true
}
},
"subscriber": {
"features": {
"publisher_identification": true,
"pattern_based_subscription": true,
"subscription_revocation": true
}
}
}
}
]
]
[
"RX",
"realm1",
null,
[
2,
2107390068346239,
{
"x_cb_node": "intel-nuci7-29171",
"x_cb_worker": "worker001",
"x_cb_peer": "tcp4:127.0.0.1:37862",
"x_cb_pid": 29180,
"realm": "realm1",
"authid": "MW6L-LKJY-3S6G-56R4-7RFX-SCW5",
"authrole": "anonymous",
"authmethod": "anonymous",
"authprovider": "static",
"authextra": {
"x_cb_node": "intel-nuci7-29171",
"x_cb_worker": "worker001",
"x_cb_peer": "tcp4:127.0.0.1:37862",
"x_cb_pid": 29180
},
"roles": {
"broker": {
"features": {
"publisher_identification": true,
"pattern_based_subscription": true,
"session_meta_api": true,
"subscription_meta_api": true,
"subscriber_blackwhite_listing": true,
"publisher_exclusion": true,
"subscription_revocation": true,
"payload_transparency": true,
"payload_encryption_cryptobox": true,
"event_retention": true
}
},
"dealer": {
"features": {
"caller_identification": true,
"pattern_based_registration": true,
"session_meta_api": true,
"registration_meta_api": true,
"shared_registration": true,
"call_canceling": true,
"progressive_call_results": true,
"registration_revocation": true,
"payload_transparency": true,
"testament_meta_api": true,
"payload_encryption_cryptobox": true
}
}
}
}
]
]
[
"RX",
"realm1",
null,
[
2,
2974922809275531,
{
"x_cb_node": "intel-nuci7-29171",
"x_cb_worker": "worker001",
"x_cb_peer": "tcp4:127.0.0.1:37866",
"x_cb_pid": 29180,
"realm": "realm1",
"authid": "SATH-9AYX-43AK-HHSL-NNQF-LCX7",
"authrole": "anonymous",
"authmethod": "anonymous",
"authprovider": "static",
"authextra": {
"x_cb_node": "intel-nuci7-29171",
"x_cb_worker": "worker001",
"x_cb_peer": "tcp4:127.0.0.1:37866",
"x_cb_pid": 29180
},
"roles": {
"broker": {
"features": {
"publisher_identification": true,
"pattern_based_subscription": true,
"session_meta_api": true,
"subscription_meta_api": true,
"subscriber_blackwhite_listing": true,
"publisher_exclusion": true,
"subscription_revocation": true,
"payload_transparency": true,
"payload_encryption_cryptobox": true,
"event_retention": true
}
},
"dealer": {
"features": {
"caller_identification": true,
"pattern_based_registration": true,
"session_meta_api": true,
"registration_meta_api": true,
"shared_registration": true,
"call_canceling": true,
"progressive_call_results": true,
"registration_revocation": true,
"payload_transparency": true,
"testament_meta_api": true,
"payload_encryption_cryptobox": true
}
}
}
}
]
]
[
"TX",
"realm1",
2974922809275531,
[
32,
1,
{},
"com.myapp.topic1"
]
]
[
"RX",
"realm1",
2974922809275531,
[
33,
1,
2741111965775030
]
]
[
"TX",
"realm1",
2107390068346239,
[
16,
1,
{},
"com.myapp.topic1",
[
0
]
]
]
[
"RX",
"realm1",
2974922809275531,
[
36,
2741111965775030,
361120122588357,
{},
[
0
]
]
]
[
"TX",
"realm1",
2107390068346239,
[
16,
2,
{},
"com.myapp.topic1",
[
1
]
]
]
[
"RX",
"realm1",
2974922809275531,
[
36,
2741111965775030,
1996087311623383,
{},
[
1
]
]
]
[
"TX",
"realm1",
2107390068346239,
[
16,
3,
{},
"com.myapp.topic1",
[
2
]
]
]
[
"RX",
"realm1",
2974922809275531,
[
36,
2741111965775030,
7240926318205044,
{},
[
2
]
]
]
[
"TX",
"realm1",
2107390068346239,
[
16,
4,
{},
"com.myapp.topic1",
[
3
]
]
]
[
"RX",
"realm1",
2974922809275531,
[
36,
2741111965775030,
3305218571085187,
{},
[
3
]
]
]
[
"TX",
"realm1",
2107390068346239,
[
16,
5,
{},
"com.myapp.topic1",
[
4
]
]
]
[
"RX",
"realm1",
2974922809275531,
[
36,
2741111965775030,
3667552644593550,
{},
[
4
]
]
]
[
"TX",
"realm1",
2107390068346239,
[
16,
6,
{},
"com.myapp.topic1",
[
5
]
]
]
[
"RX",
"realm1",
2974922809275531,
[
36,
2741111965775030,
8049375070492673,
{},
[
5
]
]
]
[
"TX",
"realm1",
2107390068346239,
[
6,
{},
"wamp.close.normal"
]
]
[
"TX",
"realm1",
2974922809275531,
[
6,
{},
"wamp.close.normal"
]
]
✔ testPubsubBasic
OK: 1 assertions (699ms)
(cpy311_1) (base) oberstet@intel-nuci7:~/scm/crossbario/autobahn-js$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment