{"action":"created","issue":{"url":"https://api.github.com/repos/meetecho/janus-gateway/issues/458","repository_url":"https://api.github.com/repos/meetecho/janus-gateway","labels_url":"https://api.github.com/repos/meetecho/janus-gateway/issues/458/labels{/name}","comments_url":"https://api.github.com/repos/meetecho/janus-gateway/issues/458/comments","events_url":"https://api.github.com/repos/meetecho/janus-gateway/issues/458/events","html_url":"https://github.com/meetecho/janus-gateway/pull/458","id":131081028,"number":458,"title":"New transport module (Unix Sockets)","user":{"login":"lminiero","id":3684796,"avatar_url":"https://avatars.githubusercontent.com/u/3684796?v=3","gravatar_id":"","url":"https://api.github.com/users/lminiero","html_url":"https://github.com/lminiero","followers_url":"https://api.github.com/users/lminiero/followers","following_url":"https://api.github.com/users/lminiero/following{/other_user}","gists_url":"https://api.github.com/users/lminiero/gists{/gist_id}","starred_url":"https://api.github.com/users/lminiero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lminiero/subscriptions","organizations_url":"https://api.github.com/users/lminiero/orgs","repos_url":"https://api.github.com/users/lminiero/repos","events_url":"https://api.github.com/users/lminiero/events{/privacy}","received_events_url":"https://api.github.com/users/lminiero/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-02-03T16:41:35Z","updated_at":"2016-02-05T11:03:42Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/meetecho/janus-gateway/pulls/458","html_url":"https://github.com/meetecho/janus-gateway/pull/458","diff_url":"https://github.com/meetecho/janus-gateway/pull/458.diff","patch_url":"https://github.com/meetecho/janus-gateway/pull/458.patch"},"body":"This patch adds a new transport module, specifically for controlling a Janus instance via Unix Sockets as an alternative to the already available HTTP, WebSockets and RabbitMQ transports. This would be particularly useful in contexts where Janus and its controlling application are colocated, and where a dedicated control channel would be more efficient. Credits for the suggestion about the new module and hints go to @saghul!\r\n\r\nAs of now, you can configure two named server sockets, one for the Janus API and one for the Admin API. When writing a client, you need to specify the ```SOCK_SEQPACKET``` type, as that's what both interfaces make use of. Changing this to something different (e.g., ```SOCK_DGRAM```) would be trivial and I guess could be added to the configuration as well, so if there's interest in that we can do that. There's no plan on adding support for ```SOCK_STREAM```, instead, as we need the automatic message framing that a stream does not provide.\r\n\r\nI haven't tested this extensively (just did a few validations), so feedback and bug reports are more than welcome!"},"comment":{"url":"https://api.github.com/repos/meetecho/janus-gateway/issues/comments/180297670","html_url":"https://github.com/meetecho/janus-gateway/pull/458#issuecomment-180297670","issue_url":"https://api.github.com/repos/meetecho/janus-gateway/issues/458","id":180297670,"user":{"login":"saghul","id":317464,"avatar_url":"https://avatars.githubusercontent.com/u/317464?v=3","gravatar_id":"","url":"https://api.github.com/users/saghul","html_url":"https://github.com/saghul","followers_url":"https://api.github.com/users/saghul/followers","following_url":"https://api.github.com/users/saghul/following{/other_user}","gists_url":"https://api.github.com/users/saghul/gists{/gist_id}","starred_url":"https://api.github.com/users/saghul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saghul/subscriptions","organizations_url":"https://api.github.com/users/saghul/orgs","repos_url":"https://api.github.com/users/saghul/repos","events_url":"https://api.github.com/users/saghul/events{/privacy}","received_events_url":"https://api.github.com/users/saghul/received_events","type":"User","site_admin":false},"created_at":"2016-02-05T11:03:42Z","updated_at":"2016-02-05T11:03:42Z","body":"Look good! I'll run it for a spin next week and report back."}}