Skip to content

Commit

Permalink
Added JSONRPC 2.0 spec (airalab#242)
Browse files Browse the repository at this point in the history
  • Loading branch information
esteve authored Feb 13, 2023
1 parent e317698 commit d7347dd
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions protocol/src/pubsub/spec.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
[
{
"name": "pubsub_peer",
"returns": "String"
},
{
"name": "pubsub_listen",
"params": {
"address": "Multiaddr"
},
"returns": true
},
{
"name": "pubsub_listeners",
"returns": ["Multiaddr"]
},
{
"name": "pubsub_connect",
"params": {
"address": "Multiaddr"
},
"returns": true
},
{
"name": "pubsub_publish",
"params": {
"topic_name": "String",
"message": "String"
},
"returns": true
}
]

0 comments on commit d7347dd

Please sign in to comment.