Creates a ClientApi
for the given protocol handler.
Parameters
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
protocol |
object | The protocol that should be wrapped. Properties
|
Methods
(static) isApi(api) → {boolean}
Returns whether the given object is a ClientApi
instance.
Parameters
Name | Type | Description |
---|---|---|
api |
any | The api to check. This can be any value. The method will always return false for non-objects. |