Commit c252c499 authored by Iuri Matias's avatar Iuri Matias

add missing send method

parent 8846f8d4
...@@ -36,6 +36,10 @@ Provider.prototype.sendAsync = function (payload, callback) { ...@@ -36,6 +36,10 @@ Provider.prototype.sendAsync = function (payload, callback) {
callback(new Error('unknown method ' + payload.method)) callback(new Error('unknown method ' + payload.method))
} }
Provider.prototype.send = function(payload, callback) {
this.sendAsync(payload, callback || () => {})
}
Provider.prototype.isConnected = function () { Provider.prototype.isConnected = function () {
return true return true
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment