{"action":"created","issue":{"url":"https://api.github.com/repos/crossbario/crossbar/issues/451","labels_url":"https://api.github.com/repos/crossbario/crossbar/issues/451/labels{/name}","comments_url":"https://api.github.com/repos/crossbario/crossbar/issues/451/comments","events_url":"https://api.github.com/repos/crossbario/crossbar/issues/451/events","html_url":"https://github.com/crossbario/crossbar/issues/451","id":105584592,"number":451,"title":"wamp.session.on_leave doesn't provide session ID","user":{"login":"Budulianin","id":1488661,"avatar_url":"https://avatars.githubusercontent.com/u/1488661?v=3","gravatar_id":"","url":"https://api.github.com/users/Budulianin","html_url":"https://github.com/Budulianin","followers_url":"https://api.github.com/users/Budulianin/followers","following_url":"https://api.github.com/users/Budulianin/following{/other_user}","gists_url":"https://api.github.com/users/Budulianin/gists{/gist_id}","starred_url":"https://api.github.com/users/Budulianin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Budulianin/subscriptions","organizations_url":"https://api.github.com/users/Budulianin/orgs","repos_url":"https://api.github.com/users/Budulianin/repos","events_url":"https://api.github.com/users/Budulianin/events{/privacy}","received_events_url":"https://api.github.com/users/Budulianin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/crossbario/crossbar/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/crossbario/crossbar/labels/core","name":"core","color":"009800"},{"url":"https://api.github.com/repos/crossbario/crossbar/labels/needs-investigation","name":"needs-investigation","color":"fb9933"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/crossbario/crossbar/milestones/6","html_url":"https://github.com/crossbario/crossbar/milestones/0.11.2","labels_url":"https://api.github.com/repos/crossbario/crossbar/milestones/6/labels","id":1310153,"number":6,"title":"0.11.2","description":"","creator":{"login":"hawkowl","id":3307100,"avatar_url":"https://avatars.githubusercontent.com/u/3307100?v=3","gravatar_id":"","url":"https://api.github.com/users/hawkowl","html_url":"https://github.com/hawkowl","followers_url":"https://api.github.com/users/hawkowl/followers","following_url":"https://api.github.com/users/hawkowl/following{/other_user}","gists_url":"https://api.github.com/users/hawkowl/gists{/gist_id}","starred_url":"https://api.github.com/users/hawkowl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hawkowl/subscriptions","organizations_url":"https://api.github.com/users/hawkowl/orgs","repos_url":"https://api.github.com/users/hawkowl/repos","events_url":"https://api.github.com/users/hawkowl/events{/privacy}","received_events_url":"https://api.github.com/users/hawkowl/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":7,"state":"open","created_at":"2015-09-17T11:55:32Z","updated_at":"2015-10-28T20:39:28Z","due_on":null,"closed_at":null},"comments":13,"created_at":"2015-09-09T12:18:44Z","updated_at":"2015-11-19T21:14:54Z","closed_at":null,"body":"crossbar==0.11.0\r\n\r\nwamp.session.on_join pass info about session, but on_leave not.\r\n\r\n`def on_join(self, session):\r\n    print(session)`\r\n\r\n`def on_leave(self, *args, **kwargs):\r\n    print(args, kwargs)`\r\n\r\noutput:\r\n`{'authprovider': None, ... 'type': 'websocket'}}`\r\n`((None,), {})`\r\n\r\n\r\nconfig crossbar:\r\n\r\n```\r\n{\r\n  \"controller\": {\r\n  },\r\n  \"workers\": [\r\n    {\r\n      \"type\": \"router\",\r\n      \"options\": {\r\n        \"pythonpath\": [\"..\"]\r\n      },\r\n      \"realms\": [\r\n        {\r\n          \"name\": \"general\",\r\n          \"roles\": [\r\n            {\r\n               \"name\": \"anonymous\",\r\n               \"permissions\": [\r\n                  {\r\n                     \"uri\": \"*\",\r\n                     \"publish\": true,\r\n                     \"subscribe\": true,\r\n                     \"call\": true,\r\n                     \"register\": true\r\n                  }\r\n               ]\r\n            },\r\n            {\r\n              \"name\": \"backend\",\r\n              \"permissions\": [\r\n                {\r\n                  \"uri\": \"*\",\r\n                  \"publish\": true,\r\n                  \"subscribe\": true\r\n                }\r\n              ]\r\n            }\r\n          ]\r\n        }\r\n      ],\r\n      \"transports\": [\r\n        {\r\n          \"type\": \"websocket\",\r\n          \"endpoint\": {\r\n            \"type\": \"tcp\",\r\n            \"port\": 6060\r\n          },\r\n          \"options\": {\r\n            \"enable_webstatus\": false\r\n          }\r\n        }\r\n      ],\r\n      \"components\": [\r\n        {\r\n          \"type\": \"class\",\r\n          \"classname\": \"directory.Application\",\r\n          \"realm\": \"general\",\r\n          \"role\": \"backend\"\r\n        }\r\n      ]\r\n    }\r\n  ]\r\n}\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/crossbario/crossbar/issues/comments/158200191","html_url":"https://github.com/crossbario/crossbar/issues/451#issuecomment-158200191","issue_url":"https://api.github.com/repos/crossbario/crossbar/issues/451","id":158200191,"user":{"login":"meejah","id":145599,"avatar_url":"https://avatars.githubusercontent.com/u/145599?v=3","gravatar_id":"","url":"https://api.github.com/users/meejah","html_url":"https://github.com/meejah","followers_url":"https://api.github.com/users/meejah/followers","following_url":"https://api.github.com/users/meejah/following{/other_user}","gists_url":"https://api.github.com/users/meejah/gists{/gist_id}","starred_url":"https://api.github.com/users/meejah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meejah/subscriptions","organizations_url":"https://api.github.com/users/meejah/orgs","repos_url":"https://api.github.com/users/meejah/repos","events_url":"https://api.github.com/users/meejah/events{/privacy}","received_events_url":"https://api.github.com/users/meejah/received_events","type":"User","site_admin":false},"created_at":"2015-11-19T21:14:53Z","updated_at":"2015-11-19T21:14:53Z","body":"If anyone experiencing this problem would like to test their code with the fix proposed in #520, that would be great!\r\n\r\nYou can install a crossbar with that fix like so: ``pip install https://github.com/meejah/crossbar/archive/issue451.zip`` (it is based off current master)."}}