-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple fixes and updates to rhea-promise #44
Conversation
@GaikwadPratik - Can you please
Run your app and then provide the updated logs. Note: If the installation is not successful, then please try changing the file extension from If that also does not work then feel to clone the branch from my fork and then run I have added the session id in all the log statements, which should hopefully help us find the root cause, relatively sooner. |
@ramya-rao-a - Please review. |
I did create two packages one from above zip file and one from I was trying to verify using this change, but it seems I get function like this
|
Hey @GaikwadPratik, You can download the tar.gz from here. In package.json provide the absolute path to the tar.gz file "dependencies": {
"rhea-promise": "/<absolute path to the tarball>/rhea-promise-0.2.1.tgz"
} W.r.t location, |
Is there a specific change I can check to ensure the correct changes are in? |
The error message that you were getting for OperationTimeoutError has been modified. The updated message as can be seen at this location is:
|
Make sure to delete the package-lock.json file before installing. It can cause issues while installing an update. Deleting the node_modules folder is also a good thing to ensure that you had a clean install. |
…text in disconnected event handler
Waiting on
|
id
to theSession
object. The id property is created by concatenating session's local channel, remote channel and the connection id"local-<number>_remote-<number>_<connection-id>"
, thus making it unique for that connection.options
toLink.close({closeSession: true | false})
, thus the user can specify whether the underlying session should be closed while closing theSender|Receiver
. Default istrue
.open
andclose
operations onConnection
,Session
andLink
by cleating timer in case the connection gets disconnected. Fixes #41.Sender
does not have a provision ofawaiting
on sending a message. The user needs to add handlers on theSender
foraccepted
,rejected
,released
,modified
to ensure whether the message was successfully sent. Now, we have added a newAsynchronousSender
which adds the handlers internally and provides an awaitablesend()
operation to the customer. Fixes #45.InsufficientCreditError
: Defines the error that occurs when the Sender does not have enough credit.SendOperationFailedError
: Defines the error that occurs when the Sender fails to send a message.