{"action":"created","issue":{"url":"https://api.github.com/repos/azawawi/SwiftyZeroMQ/issues/7","repository_url":"https://api.github.com/repos/azawawi/SwiftyZeroMQ","labels_url":"https://api.github.com/repos/azawawi/SwiftyZeroMQ/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/azawawi/SwiftyZeroMQ/issues/7/comments","events_url":"https://api.github.com/repos/azawawi/SwiftyZeroMQ/issues/7/events","html_url":"https://github.com/azawawi/SwiftyZeroMQ/issues/7","id":188312616,"number":7,"title":"Wrap Socket Options","user":{"login":"jcockayne","id":8274581,"avatar_url":"https://avatars.githubusercontent.com/u/8274581?v=3","gravatar_id":"","url":"https://api.github.com/users/jcockayne","html_url":"https://github.com/jcockayne","followers_url":"https://api.github.com/users/jcockayne/followers","following_url":"https://api.github.com/users/jcockayne/following{/other_user}","gists_url":"https://api.github.com/users/jcockayne/gists{/gist_id}","starred_url":"https://api.github.com/users/jcockayne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcockayne/subscriptions","organizations_url":"https://api.github.com/users/jcockayne/orgs","repos_url":"https://api.github.com/users/jcockayne/repos","events_url":"https://api.github.com/users/jcockayne/events{/privacy}","received_events_url":"https://api.github.com/users/jcockayne/received_events","type":"User","site_admin":false},"labels":[{"id":463873679,"url":"https://api.github.com/repos/azawawi/SwiftyZeroMQ/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":463873680,"url":"https://api.github.com/repos/azawawi/SwiftyZeroMQ/labels/help%20wanted","name":"help wanted","color":"128A0C","default":true}],"state":"open","locked":false,"assignee":{"login":"jcockayne","id":8274581,"avatar_url":"https://avatars.githubusercontent.com/u/8274581?v=3","gravatar_id":"","url":"https://api.github.com/users/jcockayne","html_url":"https://github.com/jcockayne","followers_url":"https://api.github.com/users/jcockayne/followers","following_url":"https://api.github.com/users/jcockayne/following{/other_user}","gists_url":"https://api.github.com/users/jcockayne/gists{/gist_id}","starred_url":"https://api.github.com/users/jcockayne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcockayne/subscriptions","organizations_url":"https://api.github.com/users/jcockayne/orgs","repos_url":"https://api.github.com/users/jcockayne/repos","events_url":"https://api.github.com/users/jcockayne/events{/privacy}","received_events_url":"https://api.github.com/users/jcockayne/received_events","type":"User","site_admin":false},"assignees":[{"login":"jcockayne","id":8274581,"avatar_url":"https://avatars.githubusercontent.com/u/8274581?v=3","gravatar_id":"","url":"https://api.github.com/users/jcockayne","html_url":"https://github.com/jcockayne","followers_url":"https://api.github.com/users/jcockayne/followers","following_url":"https://api.github.com/users/jcockayne/following{/other_user}","gists_url":"https://api.github.com/users/jcockayne/gists{/gist_id}","starred_url":"https://api.github.com/users/jcockayne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcockayne/subscriptions","organizations_url":"https://api.github.com/users/jcockayne/orgs","repos_url":"https://api.github.com/users/jcockayne/repos","events_url":"https://api.github.com/users/jcockayne/events{/privacy}","received_events_url":"https://api.github.com/users/jcockayne/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2016-11-09T18:02:01Z","updated_at":"2016-11-09T22:53:09Z","closed_at":null,"body":"It looks like pub/sub doesn't work at the moment without first calling `zmq_setsockopt` on the subscriber. This is because the default for .subscribe sockets is to ignore all messages. We should start looking at wrapping [zmq_setsockopt](http://api.zeromq.org/2-1:zmq-setsockopt) to get around this. \r\n\r\nProviding a generic function as we have in the `Context` is not going to be so simple because, depending on the option name, different data types can be passed. I would suggest we either provide a method for each option name, or a method for each data type - the former seems neater but requires more boilerplate."},"comment":{"url":"https://api.github.com/repos/azawawi/SwiftyZeroMQ/issues/comments/259550187","html_url":"https://github.com/azawawi/SwiftyZeroMQ/issues/7#issuecomment-259550187","issue_url":"https://api.github.com/repos/azawawi/SwiftyZeroMQ/issues/7","id":259550187,"user":{"login":"azawawi","id":82854,"avatar_url":"https://avatars.githubusercontent.com/u/82854?v=3","gravatar_id":"","url":"https://api.github.com/users/azawawi","html_url":"https://github.com/azawawi","followers_url":"https://api.github.com/users/azawawi/followers","following_url":"https://api.github.com/users/azawawi/following{/other_user}","gists_url":"https://api.github.com/users/azawawi/gists{/gist_id}","starred_url":"https://api.github.com/users/azawawi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azawawi/subscriptions","organizations_url":"https://api.github.com/users/azawawi/orgs","repos_url":"https://api.github.com/users/azawawi/repos","events_url":"https://api.github.com/users/azawawi/events{/privacy}","received_events_url":"https://api.github.com/users/azawawi/received_events","type":"User","site_admin":false},"created_at":"2016-11-09T22:53:09Z","updated_at":"2016-11-09T22:53:09Z","body":"Nice suggestion. For example, `ZMQ_AFFINITY`  can be `context.setAffinity`. I was going to start working on it but I am currently on vacation without any access to a Mac. Please feel free to submit a pull request."}}
{"actor":{"display_login":"azawawi"}}