new JsonRpcNotification(message)
Parameters:
Name | Type | Description |
---|---|---|
message |
Object |
Extends
Members
-
isNotification
-
Determinates is current message is notification
- Inherited From:
-
isRequest
-
Determinates is current message is request
- Inherited From:
-
isResponse
-
Determinates is current message is response
- Inherited From:
Methods
-
getCallback()
-
Gets messeage callback
- Inherited From:
Returns:
- Type
- function | undefined
-
getMethod()
-
Gets messeage method
- Inherited From:
Returns:
- Type
- String
-
getParams()
-
Gets messeage parameters for method
- Inherited From:
Returns:
- Type
- Object
-
getResource()
-
Gets messeage resource for method
- Inherited From:
Returns:
- Type
- String
-
getVersion()
-
Gets messeage schema version
- Inherited From:
Returns:
- Type
- String
-
setCallback(callback, tls)
-
Sets messeage callback
Parameters:
Name Type Description callback
function Callback to be fired when got response tls
Number Time in ms how long keep uncalled callback - Inherited From:
Returns:
- Type
- JsonRpc
-
setMethod(method)
-
Sets messeage method
Parameters:
Name Type Description method
String - Inherited From:
Returns:
- Type
- JsonRpc
-
setParams(params)
-
Sets messeage parameters for method
Parameters:
Name Type Description params
Object - Inherited From:
Returns:
- Type
- JsonRpc
-
setResource(resource)
-
Sets messeage resource for method
Parameters:
Name Type Description resource
String - Inherited From:
Returns:
- Type
- JsonRpc
-
toJSON()
-
- Inherited From:
Returns:
- Type
- Object
-
toString()
-
- Inherited From:
Returns:
- Type
- String