Created
May 9, 2018 21:59
-
-
Save Gozala/c87be155e24c0d185a954714e78adec7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"namespace": "protocol", | |
"types": [ | |
{ | |
"$ref": "ProtocolHandler", | |
"type": "function", | |
"description": "Protocol handler", | |
"async": false, | |
"parameters": [ | |
{ | |
"name": "write", | |
"type": "Write", | |
"description": "Writes chunk of data to the output stream" | |
}, | |
{ | |
"name": "end", | |
"type": "End", | |
"description": "End the output stream" | |
} | |
] | |
}, | |
{ | |
"$ref": "Write", | |
"type": "function", | |
"async": false, | |
"parameters": [ | |
{ | |
"name": "chunk", | |
"type": "ArrayBuffer", | |
"description": "Data chunk to be written" | |
} | |
] | |
}, | |
{ | |
"$ref": "End", | |
"type": "function", | |
"async": false, | |
"parameters": [] | |
} | |
], | |
"functions": [ | |
{ | |
"name": "registerProtocol", | |
"type": "function", | |
"description": "registers network protocol handler", | |
"async": true, | |
"parameters": [ | |
{ | |
"name": "scheme", | |
"type": "string", | |
"description": "The protocol scheme that implementation will handle." | |
}, | |
{ | |
"name": "handler", | |
"type": "ProtocolHandler", | |
"description": "Protocol handler for the registered protocol" | |
} | |
] | |
} | |
], | |
"properties": {}, | |
"events": [] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment