{"action":"opened","issue":{"url":"https://api.github.com/repos/amqp/rhea/issues/89","repository_url":"https://api.github.com/repos/amqp/rhea","labels_url":"https://api.github.com/repos/amqp/rhea/issues/89/labels{/name}","comments_url":"https://api.github.com/repos/amqp/rhea/issues/89/comments","events_url":"https://api.github.com/repos/amqp/rhea/issues/89/events","html_url":"https://github.com/amqp/rhea/issues/89","id":336005170,"node_id":"MDU6SXNzdWUzMzYwMDUxNzA=","number":89,"title":"How to create/attach a link.","user":{"login":"anthonyvercolano","id":9854568,"node_id":"MDQ6VXNlcjk4NTQ1Njg=","avatar_url":"https://avatars0.githubusercontent.com/u/9854568?v=4","gravatar_id":"","url":"https://api.github.com/users/anthonyvercolano","html_url":"https://github.com/anthonyvercolano","followers_url":"https://api.github.com/users/anthonyvercolano/followers","following_url":"https://api.github.com/users/anthonyvercolano/following{/other_user}","gists_url":"https://api.github.com/users/anthonyvercolano/gists{/gist_id}","starred_url":"https://api.github.com/users/anthonyvercolano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anthonyvercolano/subscriptions","organizations_url":"https://api.github.com/users/anthonyvercolano/orgs","repos_url":"https://api.github.com/users/anthonyvercolano/repos","events_url":"https://api.github.com/users/anthonyvercolano/events{/privacy}","received_events_url":"https://api.github.com/users/anthonyvercolano/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-26T21:55:24Z","updated_at":"2018-06-26T21:55:24Z","closed_at":null,"author_association":"NONE","body":"What I currently do when I am creating a Sender or Receiver link is:\r\nI have a Session object.\r\nI have some options.\r\n\r\nI call sessionObj.open_sender(option).  \r\n\r\nI have some listeners on the session object to deal with the actual session_open emit and I also have other event listeners on the session object for the various other sender events that I might see later.  Whenever I create senders this way I create each sender with a unique name.  I can thus distinguish in my event handlers if this is an event that I care about.\r\n\r\nWhat I would prefer:\r\n\r\nI would like to create a Sender object.  Do this in a way that can't fail and doesn't cause network activity.  The only things I have to do this would be the session object and a set of options.\r\nAfter the create happens I would like to add the event listeners that I care about onto this Sender object and then make a call that actually will issue the attach.  If there is an error it will invoke the event listener on the Sender object.\r\n\r\nSorry this is a very basic question.\r\nOf course the same question holds true for Receiver objects."}}
{"actor":{"display_login":"anthonyvercolano"}}